QT 包括 python

QT include python

今天我使用了 python 示例 1:https://github.com/dsavard/TI_BLE_C254x,我想在 QT Creator 上使用它,我正在尝试将 python 嵌入到我的 qt 项目的 c++ 代码中,什么可以我有吗?

如何添加python?

有好的参考吗?谢谢。

我对执行Popen很有用,但无法完成其操作。 刚接触QT,不熟悉。

权威参考,非 QT 特定,位于 https://docs.python.org/3.6/extending/embedding.html

您可能还需要阅读 Python/C API Reference Manual