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.
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
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