PDA

View Full Version : Mapping JavaScript object to QT (and vice versa)



leoalvesmachado
25th June 2010, 19:11
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.

JohannesMunk
25th June 2010, 22:53
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/Projects/QtScript/Generator

HIH

Johannes

leoalvesmachado
30th June 2010, 19:00
I've found this link.
It's a nice "hello world" :)
http://www.kdedevelopers.org/node/4008