huangrunheng 523d61abf9 doc: update image il y a 2 ans
..
FluentUI 232178f223 feat(gui): replace stackview with swipeview il y a 3 ans
context 17629f69f5 fix(task): Can not test notify il y a 3 ans
process 4ca2c81c06 feat(gui): 6.14 update il y a 3 ans
qml 523d61abf9 doc: update image il y a 2 ans
register_type e385de5b3f feat(gui): image rule il y a 3 ans
res 3416671804 feat(gui): add Overview scheduler il y a 3 ans
Bridge.py 5003f140eb feat:gui test il y a 3 ans
README.md 3416671804 feat(gui): add Overview scheduler il y a 3 ans
fluent_app.py bfb2bb1739 feat(gui): update dpi il y a 3 ans
oas.pyproject 81aa77181f feat(gui):save 5.11 il y a 3 ans
qml.qrc f8f6c9ed40 feat(flutter): Add notify il y a 3 ans
qml_rc.py c0de03851f fix[Restart]: can't start channel server il y a 3 ans
qml_rcc.py 3416671804 feat(gui): add Overview scheduler il y a 3 ans
res.qrc 3416671804 feat(gui): add Overview scheduler il y a 3 ans
res_rc.py c0de03851f fix[Restart]: can't start channel server il y a 3 ans
res_rcc.py 3416671804 feat(gui): add Overview scheduler il y a 3 ans
utils.py 23b479325e perf(deploy): Administrator status il y a 3 ans

README.md

在pyside6中不能直接使用qrc, 需要转成rcc

根目录有一个console.bat。打开进入命令行

where python
cd module/gui
pyside6-rcc -o qml_rcc.py qml.qrc
pyside6-rcc -o res_rcc.py res.qrc

即可生成rcc文件。当然当你每修改一次qrc指向的资源文件时候就需要运行一次

可以这样导入
import module.gui.qml_rcc, module.gui.res_rcc

但是很显然由于qml文件需要修改不能将其每次都rcc一次

所以可以使用

Qt.resolvedUrl("../../qml/Page/O_Settings.qml")

在PyQt中使用qrc/rcc资源系统(PySide6-PyQt5) - 知乎 (zhihu.com)