QString testInt
= "4294967295";
//biggest value quint32 test = testInt.toUInt();
str = "FF";
bool ok;
quint32 hex = str.toUInt(&ok, 16); // hex
quint32 dec = str.toUInt(&ok, 10); // dec
qDebug() << test;
qDebug() << hex;
qDebug() << dec;
QString testInt = "4294967295"; //biggest value
quint32 test = testInt.toUInt();
str = "FF";
bool ok;
quint32 hex = str.toUInt(&ok, 16); // hex
quint32 dec = str.toUInt(&ok, 10); // dec
qDebug() << test;
qDebug() << hex;
qDebug() << dec;
To copy to clipboard, switch view to plain text mode
Bookmarks