摘要: QML中如果加入了WebView控件,在用pyinstaller打包时不会自动导入,从而导致打包出的程序运行报错,no WebView plugin found,此时需要手动将WebView控件复制到打包后的程序目录下的PySide6包中,需要复制的文件有以下四个: xxx/Lib/site-pac 阅读全文
posted @ 2023-02-20 19:46 暮鼓晨钟· 阅读(289) 评论(0) 推荐(0) 编辑
摘要: 解决python与QML的通信问题: QML中直接调用python函数 python发送信号,QML响应信号并进行相应处理 py文件 # This Python file uses the following encoding: utf-8 import sys from pathlib impor 阅读全文
posted @ 2023-01-21 17:48 暮鼓晨钟· 阅读(1313) 评论(0) 推荐(0) 编辑