Results 1 to 1 of 1

Thread: QWevKit and Json Object

  1. #1
    Join Date
    May 2011
    Posts
    132
    Qt products
    Qt4
    Platforms
    Unix/X11
    Thanks
    14

    Default Re: QWevKit and Json Object

    Hi

    A javascript function is called in webkit to my attached QT object, which I am able to catch it in c++ function. The point is that this js function passes Json Object. Qt / C++ sees is as "[object Object]" when I print it to the screen.

    Is there a way to do anything with this json object like calling its functions etc ? I have tried many things using QScriptEngine etc, but I am afraid QT as this point sees it only as a plain string.

    Thanks.


    Added after 40 minutes:


    Figured: A QVariant should be used then translated to QMap.
    Last edited by migel; 7th June 2012 at 12:09.

Similar Threads

  1. json parsing
    By sabbu in forum Newbie
    Replies: 1
    Last Post: 17th June 2011, 14:04
  2. Qt application settings in JSON
    By asvil in forum Qt-based Software
    Replies: 0
    Last Post: 5th March 2011, 22:35
  3. Qt and JSON
    By Chiggins in forum Qt Programming
    Replies: 2
    Last Post: 28th June 2010, 14:12
  4. Build json, how to?
    By martinn in forum Qt Programming
    Replies: 5
    Last Post: 14th March 2010, 16:19
  5. json: eval
    By mickey in forum General Programming
    Replies: 3
    Last Post: 17th January 2008, 20:50

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.