Migs 3e6bde70b3 fix(SplitPanel): Add null checks for content loaders to prevent errors hace 11 meses
..
FluentUI 232178f223 feat(gui): replace stackview with swipeview hace 3 años
context 17629f69f5 fix(task): Can not test notify hace 3 años
process 4ca2c81c06 feat(gui): 6.14 update hace 3 años
qml 3e6bde70b3 fix(SplitPanel): Add null checks for content loaders to prevent errors hace 11 meses
register_type e385de5b3f feat(gui): image rule hace 3 años
res 3416671804 feat(gui): add Overview scheduler hace 3 años
Bridge.py 5003f140eb feat:gui test hace 3 años
README.md 3416671804 feat(gui): add Overview scheduler hace 3 años
fluent_app.py bfb2bb1739 feat(gui): update dpi hace 3 años
oas.pyproject 81aa77181f feat(gui):save 5.11 hace 3 años
qml.qrc f8f6c9ed40 feat(flutter): Add notify hace 2 años
qml_rc.py c0de03851f fix[Restart]: can't start channel server hace 3 años
qml_rcc.py 3416671804 feat(gui): add Overview scheduler hace 3 años
res.qrc 3416671804 feat(gui): add Overview scheduler hace 3 años
res_rc.py c0de03851f fix[Restart]: can't start channel server hace 3 años
res_rcc.py 3416671804 feat(gui): add Overview scheduler hace 3 años
utils.py 23b479325e perf(deploy): Administrator status hace 3 años

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)