TCP SOCKET
-
Yeah , i would definitely prefer sending the data as QByteArray as is smaller . I will try this out , thanks much .
[quote author="code_fodder" date="1372073941"]This is how I turn a QString (unicode) into a QByteArray (8bit):
@
uint16_t* pUtf16 = (uint16_t *) (uncompressedMsg.data());// Now move to the source string while (*pUtf16++){}; _source = QString::fromUtf16(pUtf16).toLatin1();
@
[/quote]
-
No problem :)
Don't forget to add [Solved] to the title once you get it working (and you can post your solution if it differs from what I wrote).
good luck