PDA

View Full Version : Using QtScript Generator to generate my bindings



inpoculis789
16th July 2010, 08:32
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

JohannesMunk
21st September 2010, 11:22
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

dlang123
21st October 2010, 21:59
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).