Results 1 to 4 of 4

Thread: converting list to JSON - performance issue.

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jul 2016
    Posts
    53
    Thanks
    13
    Qt products
    Qt4 Qt5
    Platforms
    Windows Android

    Default Re: converting list to JSON - performance issue.

    Hi,

    for(QVariantMap::const_iterator iter = jsonQVariantMap.begin(); iter != jsonQVariantMap.end(); ++iter) {

    QVariant objQVariant = iter.key();//Gives the value of Iteration - 0,1....

    calling just value(key)

    Some code snippet Please.

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: converting list to JSON - performance issue.

    Quote Originally Posted by Mathan View Post
    QVariant objQVariant = iter.key();//Gives the value of Iteration - 0,1....
    No, gives the key of the iteration.
    Actually a QString.

    Quote Originally Posted by Mathan View Post
    calling just value(key)

    Some code snippet Please.
    Really? You need a code snippet for a single method call on an object?
    Qt Code:
    1. map.value("title");
    To copy to clipboard, switch view to plain text mode 

    Cheers,
    _

  3. The following user says thank you to anda_skoa for this useful post:

    Mathan (1st October 2016)

Similar Threads

  1. Parsing a JSon webservice reply issue
    By roseicollis in forum Qt Programming
    Replies: 12
    Last Post: 11th February 2015, 08:42
  2. Replies: 0
    Last Post: 30th September 2013, 19:47
  3. Performance issue
    By Skorpien126 in forum Qt Programming
    Replies: 4
    Last Post: 2nd July 2010, 16:02
  4. Replies: 0
    Last Post: 16th May 2010, 17:53
  5. Performance Issue
    By linuxdev in forum Qt Programming
    Replies: 1
    Last Post: 10th December 2008, 15: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
  •  
Qt is a trademark of The Qt Company.