How to convert QString to int?

I have a QString in my sources. So I need to convert it to integer without “Kb”.

I tried Abcd.toInt() but it does not work.

QString Abcd = "123.5 Kb"

Leave a Comment