Results 1 to 3 of 3

Thread: Mapping JavaScript object to QT (and vice versa)

  1. #1
    Join Date
    Apr 2010
    Location
    Porto Alegre, RS, Brazil
    Posts
    37
    Thanks
    9
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Question Mapping JavaScript object to QT (and vice versa)

    Hi everyone.

    I need to access a QT object (call its methods, etc) from JS code. Does anyone know any good tutorial/video, or some steb-by step that is easy to follow.
    I've found this one: http://doc.trolltech.com/4.3/qtscript.html#details
    Am I in the right path?

    Thanks in advance.

  2. #2
    Join Date
    Feb 2007
    Location
    Karlsruhe, Germany
    Posts
    469
    Thanks
    17
    Thanked 90 Times in 88 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Mapping JavaScript object to QT (and vice versa)

    Yes you are. But take the latest doc version:

    http://doc.trolltech.com/latest/scripting.html

    Do yourself a favour and read this through, letter by letter. At first, I didn't. And found myself reading it over and over again.

    And when you want to use Qt classes have a look at the fabulous Qt Script Bindings Generator project:

    http://labs.trolltech.com/page/Proje...ript/Generator

    HIH

    Johannes

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

    leoalvesmachado (30th June 2010)

  4. #3
    Join Date
    Apr 2010
    Location
    Porto Alegre, RS, Brazil
    Posts
    37
    Thanks
    9
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Lightbulb Re: Mapping JavaScript object to QT (and vice versa)

    I've found this link.
    It's a nice "hello world"
    http://www.kdedevelopers.org/node/4008

Similar Threads

  1. object-relational mapping support?
    By brcain in forum Qt Programming
    Replies: 18
    Last Post: 28th January 2016, 12:42
  2. Replies: 0
    Last Post: 25th March 2010, 13:10
  3. conversion between string to hex and vice versa
    By mohanakrishnan in forum Newbie
    Replies: 2
    Last Post: 5th December 2009, 12:25
  4. Mapping of .ui elements to object methods
    By KieranS in forum Qt Tools
    Replies: 2
    Last Post: 5th November 2009, 22:33
  5. Convert QByteArray to object and vice versa
    By DiamonDogX in forum Qt Programming
    Replies: 4
    Last Post: 20th July 2009, 21:07

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.