#include
#include
#include
#include
int main(int argc, char *argv[])
{
QCoreApplication app(argc, argv);
int i = 1045632159;
QByteArray byteArray;
QDataStream stream(&byteArray, QIODevice::WriteOnly);
stream << i;
int newValue = qFromBigEndian( (const uchar*)byteArray.constData() );
qDebug() << " newValue: " << newValue;
return app.exec();
}