Originally Posted by
wysota
It depends whether the architecture is big-endian or little-endian.
Maybe your machine is little-endian.
wysota, the problem is in compilation. Compiler says I cannot convert from 'const unsigned char *' to 'qint32'
so I changed
qint32 v = qFromBigEndian( (const uchar*)cardId.constData() );
qint32 v = qFromBigEndian( (const uchar*)cardId.constData() );
To copy to clipboard, switch view to plain text mode
to
qint32 v = qFromBigEndian( (const uchar*)(cardId.constData()) );
qint32 v = qFromBigEndian( (const uchar*)(cardId.constData()) );
To copy to clipboard, switch view to plain text mode
for the operator precedence but nothing change.
I still get such error. This sounds strange as the documentation says
T qFromBigEndian ( const uchar * src )where T can be a qint32
Bookmarks