百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
P

pyotherside

> 编程语言
开源

Python 适用于 Qt 5 和 Qt 6 的绑定。允许您直接从 Qt QML 用户界面代码中访问 CPython 3 解释器。

371 stars0 点赞2 次浏览
访问官网GitHub

工具介绍

Python 适用于 Qt 5 和 Qt 6 的绑定。允许您直接从 Qt QML 用户界面代码中访问 CPython 3 解释器。

PyOtherSide: Python 3 QML Plugin for Qt 5 and Qt 6

A Qt plugin providing access to a Python 3 interpreter from QML for creating asynchronous mobile and Desktop UIs with Python.

Requirements

  • Qt 5.1.0 or newer (Qt 6.x also supported)
  • Python 3.8.0 or newer

Building

To build and install the QML plugin:

qmake   # use "qmake6" for Qt 6
make
make install

To build against a specific Python version, use:

qmake PYTHON_CONFIG=python3.8-config   # use "qmake6" for Qt 6
make
make install

To manually update the qmltypes file on x64 Linux (TODO: make this automated):

bash
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 qmltypes

Unit Testing

To run the included unit tests after building, use:

./tests/tests

Static Linking

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

More information

  • Project page: https://thp.io/2011/pyotherside/
  • Git repo: http://github.com/thp/pyotherside/
  • Bug tracker: https://github.com/thp/pyotherside/issues
  • Documentation: http://pyotherside.readthedocs.org/

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

C++python3qt6

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言