Works for me:
I USE
Qt Code:
QByteArray parameters; (*stream) << values; delete stream; stream = NULL;To copy to clipboard, switch view to plain text mode
Works for me:
I USE
Qt Code:
QByteArray parameters; (*stream) << values; delete stream; stream = NULL;To copy to clipboard, switch view to plain text mode
Last edited by karankumar1609; 29th May 2013 at 12:54.
This will only work if you used QDataStream to serialise the QVariantMap in the first place.
There's no need to allocate the QDataStream on the heap at line 2. The syntax at line 4 is simplified, and lines 5 and 6 become unnecessary.
karankumar1609 (31st May 2013)
Bookmarks