runhey 984ea8e12c feat(notify): Interface implemented but not yet connected to the system 3 лет назад
..
FluentUI 232178f223 feat(gui): replace stackview with swipeview 3 лет назад
context 984ea8e12c feat(notify): Interface implemented but not yet connected to the system 3 лет назад
process 4ca2c81c06 feat(gui): 6.14 update 3 лет назад
qml 984ea8e12c feat(notify): Interface implemented but not yet connected to the system 3 лет назад
register_type e385de5b3f feat(gui): image rule 3 лет назад
res 3416671804 feat(gui): add Overview scheduler 3 лет назад
Bridge.py 5003f140eb feat:gui test 3 лет назад
README.md 3416671804 feat(gui): add Overview scheduler 3 лет назад
fluent_app.py bfb2bb1739 feat(gui): update dpi 3 лет назад
oas.pyproject 81aa77181f feat(gui):save 5.11 3 лет назад
qml.qrc 984ea8e12c feat(notify): Interface implemented but not yet connected to the system 3 лет назад
qml_rcc.py 3416671804 feat(gui): add Overview scheduler 3 лет назад
res.qrc 3416671804 feat(gui): add Overview scheduler 3 лет назад
res_rcc.py 3416671804 feat(gui): add Overview scheduler 3 лет назад
utils.py 23b479325e perf(deploy): Administrator status 3 лет назад

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)