Python 适用于 Qt 5 和 Qt 6 的绑定。允许您直接从 Qt QML 用户界面代码中访问 CPython 3 解释器。
Python 适用于 Qt 5 和 Qt 6 的绑定。允许您直接从 Qt QML 用户界面代码中访问 CPython 3 解释器。
A Qt plugin providing access to a Python 3 interpreter from QML for creating asynchronous mobile and Desktop UIs with Python.
To build and install the QML plugin:
qmake # use "qmake6" for Qt 6
make
make installTo build against a specific Python version, use:
qmake PYTHON_CONFIG=python3.8-config # use "qmake6" for Qt 6
make
make installTo manually update the qmltypes file on x64 Linux (TODO: make this automated):
qmake # use "qmake6" for Qt 6
make
make INSTALL_ROOT=$(pwd)/tmp/
QML2_IMPORT_PATH=$(pwd)/tmp/usr/lib/x86_64-linux-gnu/qt5/qml \
make -C src qmltypesTo run the included unit tests after building, use:
./tests/testsIf you want to link PyOtherSide statically against Python 3, you can include the Python Standard Library in PyOtherSide as Qt Resource and have it extracted automatically on load, for this, zip up the Standard Library and place the .zip file as "pythonlib.zip" into src/ before running qmake.
暂无开放 Issues,或尚未同步最近议题。