Details
-
Bug
-
Resolution: Invalid
-
P3: Somewhat important
-
4.6.3, 4.7.0
-
None
-
Anywhere
Description
QTextStream::setIntegerBase() is not working correct for following usage:
QString input("80");
QTextStream stream(&input);
stream.setIntegerBase(16);
int result = 0;
stream >> result;
result is 0, while it is expected to be 128.
To read hex values from a string I should always put "0x" prefix in front of every value. I need to do this for a very long string and this dramatically decrease performance.