Results 1 to 4 of 4

Thread: Convery QByteArray to QVariantMap

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #3
    Join Date
    Feb 2013
    Location
    India
    Posts
    153
    Thanks
    27
    Thanked 18 Times in 18 Posts
    Qt products
    Qt4 Qt5 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Convery QByteArray to QVariantMap

    Works for me:
    I USE
    Qt Code:
    1. QByteArray parameters;
    2. QDataStream *stream = new QDataStream(&parameters, QIODevice::WriteOnly);
    3.  
    4. (*stream) << values;
    5. delete stream;
    6. stream = NULL;
    To copy to clipboard, switch view to plain text mode 
    Last edited by karankumar1609; 29th May 2013 at 12:54.

Similar Threads

  1. Traversing QVariantMap
    By ggdev001 in forum Newbie
    Replies: 9
    Last Post: 7th February 2013, 17:07
  2. Replies: 0
    Last Post: 10th December 2011, 11:17
  3. Replies: 0
    Last Post: 16th May 2010, 17:53
  4. Replies: 9
    Last Post: 25th July 2009, 13:27
  5. QVariant, QVariantMap, and QFileInfoList
    By themolecule in forum Qt Programming
    Replies: 2
    Last Post: 13th September 2007, 07:00

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.