[PyQt] Tutorial about the use of JavaScript

Benjamin Kleiner bizzl.greekdog at web.de
Sun Dec 6 17:20:34 GMT 2009


Hi Christophe.
The page http://doc.trolltech.com/4.5/qscriptengine.html#details in the original api doc of Qt was so far sufficient to me, e.g. I 
was able to translate most examples there from C++ into Python. You'll only have to take care that native functions (those that 
are implemented in Python and get called from JS) really returns a QScriptValue (in C++ it apparently gets casted 
automatically), and that imported Objects must be descendants of QObject, so you need a wrapper to import QDateTime and some 
other basic creeps.

Regards,
Benjamin.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
Url : http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20091206/a04cdafc/attachment.bin


More information about the PyQt mailing list