qFromLittleEndian returning "double"
Hi!
What should I do to make qFromLittleEndian return "double" ?
I know in that in docs there is written that it can return only int...
Is there any way to get data from memory that are double ?
THanks
Re: qFromLittleEndian returning "double"
Try to convert the uchar array to a QByteArray and then use QByteArray::toDouble to get a double.
Re: qFromLittleEndian returning "double"
Quote:
Originally Posted by
marcel
Try to convert the uchar array to a QByteArray and then use QByteArray::toDouble to get a double.
But what about the endianess problem ?
Re: qFromLittleEndian returning "double"
Quote:
Originally Posted by
gyre
But what about the endianess problem ?
That you will have to implement yourself.
Re: qFromLittleEndian returning "double"
Quote:
Originally Posted by
marcel
That you will have to implement yourself.
So if I understood it correctly...I will have to handle the endianess myself and then newly ordered uchar to QByteArray and that convert to Double ? Its not very handy...
Why shouldnt I just used qFromLittleEndian function ? Its no use ?