Hi,
How to get QByteArray from QString object in Qt3..??
thanks in advance.
Hi,
How to get QByteArray from QString object in Qt3..??
thanks in advance.
You could try QString::local8Bit().
But depends what you want to do with the byte array.
You could also use QString::utf8, but really, depends on your encoding.
Regards
this might work as well...
Qt Code:
QByteArray bytearray; stream << string.latin1();To copy to clipboard, switch view to plain text mode
Last edited by jacek; 5th September 2007 at 17:34. Reason: changed [qtclass] to [code]
Bookmarks