mirror of
https://github.com/thp/pyotherside.git
synced 2025-01-28 23:52:55 +08:00
Thomas Perl
3836fdbc3d
Cleaner variant: QVariant <-> PyObject * conversion
This new approach uses conversion of Python objects to Qt objects and vice versa, and introduces some new API such as "call(func, args)" and "addImportPath(path)".
This is an incomplete, buggy, proof-of-concept prototype (got it?) of a thin wrapper of libpython for QML. Ideally, this should allow you to import Python modules in QML and execute Python expressions from within your QML JavaScript code. Thanks to Attila Csipa and Ville Vainio for the initial idea of this approach during MeeGo Conference Spring 2011 in San Francisco. This is obviously not intended as a replacement for the awesome PySide, but could be a viable alternative in some corner cases where PySide is not available (e.g. Symbian^3, for which no PySide build exists yet).
Languages
C++
83.2%
QML
10.2%
Python
2.7%
QMake
1.8%
C
1.6%
Other
0.5%