I have the following code:
Qt Code:
quint32 num = 17; QByteArray ba; ba.append(num); qDebug() << "BA Size: " << ba.size();To copy to clipboard, switch view to plain text mode
I expect the output to be 4, since the a quint32 is comprised of 4 bytes. However, the output is 1 byte.
So, my question is, how do I append a quint32 number?
Bookmarks