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:
  1. fl = QString(m_DataYPoint.toHex()); //convert the data to string
  2. intValue = fl.toInt(0,16); //...and the string to an int
  3. 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