Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在寻找从 QML 到 Python 再回到 Python 的最佳通信方式。我正在努力寻找“正确”的方法来做到这一点,因为许多资源简要地解释了这个主题,但方式不同,而且似乎需要大量的样板代码。
对于上下文,我目前正在使用 PySide2。
这是我希望在以下方面使用的工作流程:
按钮上的 QML 单击将输入发送到 python --> 在 python 中接收 --> 对此输入进行一些处理 --> 传回 QML。
请提供最好的方法和尽可能多的解释,谢谢!