Hello
I am trying to use QString::toInt and have run into an issue that negative numbers get returned as zero.
Googling, I found http://bugreports.qt.nokia.com/brows...3Aall-tabpanel.
Can anyone help me get round this issue?
I have in my code
Qt Code:
QString fl; intValue = fl.toInt(0,16); //...and the string to an int m_YPoint = *(float*)&intValue;To copy to clipboard, switch view to plain text mode
where
m_DataYPoint is of type QByteArray
intValue of type qint32
m_YPoint of type float.
Thanks,
Shaun
Bookmarks