问题标签 [pyrcc]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
30 浏览

pyqt - 从 Qt Designer 更改 rcc 模块的导入路径

我正在寻找一种方法来更改 pyuic 生成的 python 文件中 rcc 模块的导入路径。

一个示例 pyuic 从 ui 文件生成 python 代码:

我想将icons_mw_rc导入路径更改为另一个位置以更好地组织我的源文件 [示例:import qrc_res.icons_mw_rc]。有没有办法使用 Qt Designer 来做到这一点,而无需手动修改 pyuic 生成的 src 文件。