I have a QString in my sources. So I need to convert it to integer without \"Kb\".
QString
I tried Abcd.toInt() but it does not work
Abcd.toInt()
Don't forget to check if the conversion was successful!
bool ok; auto str= tr("1337"); str.toDouble(&ok); // returns 1337.0, ok set to true auto strr= tr("LEET"); strr.toDouble(&ok); // returns 0.0, ok set to false