If I am using
le->setText("aabbccdd");
QLineEdit *le = new QLineEdit();
le->setText("aabbccdd");
QByteArray hexData = QByteArray::fromHex(le->text().toAscii());
To copy to clipboard, switch view to plain text mode
Is QByteArray going to encode it by the systems endian or is going to respect the order given in the QLineEdit?
qebug() << hexData.toHex();
qebug() << hexData.toHex();
To copy to clipboard, switch view to plain text mode
Debug appears to keep the byte order given, but if I am to use QByteArray::toInt() and back to hex etc do I need to track endian or will Qt do it for me?
Bob
Bookmarks