Results 1 to 3 of 3

Thread: Using QtScript Generator to generate my bindings

  1. #1
    Join Date
    Jul 2010
    Posts
    2
    Qt products
    Qt4
    Platforms
    Windows

    Question Using QtScript Generator to generate my bindings

    Hello,

    I have to access my engine's functions from QtScript (I'm using SCXML to manage my state machines).

    I want to automate the creation of binding and the only tool I found is QtScript Generator.

    However I can't figure out how to use it to generate my own bindings.

    - Is there a better tool?
    - Do you have any pointer or suggestion please?

    Regards,

    Bernard

  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: Using QtScript Generator to generate my bindings

    Is your question still on? Just found it as similar thread.

    Prior to adapting the generator, are you aware of the automatic binding of QObject descendants?

    All public slots and explicitly declared Q_PROPERTIES are made available, when you add an object.

    For me that was enough.

    Joh

  3. #3
    Join Date
    Aug 2010
    Posts
    3
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Using QtScript Generator to generate my bindings

    Also if you use the Q_INVOKABLE on your functions, you can call those as well. (may want to check on the invokable, from memory, may be a slightly different command).

Similar Threads

  1. QtADA vs java bindings
    By jgraum in forum Qt Programming
    Replies: 1
    Last Post: 12th July 2010, 17:53
  2. Replies: 1
    Last Post: 25th June 2010, 13:17
  3. QtScript Bindings Generator ScriptShell Event Binding
    By JohannesMunk in forum Qt Programming
    Replies: 2
    Last Post: 10th April 2010, 13:10
  4. New Ada2005 language bindings to Qt 4.2
    By karlson in forum Qt-based Software
    Replies: 3
    Last Post: 7th September 2007, 20:47

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.