TheNewGuy
30th March 2010, 23:17
I have the following code:
quint32 num = 17;
QByteArray ba;
ba.append(num);
qDebug() << "BA Size: " << ba.size();
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?
quint32 num = 17;
QByteArray ba;
ba.append(num);
qDebug() << "BA Size: " << ba.size();
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?