UN-GCPDS / qt-material

Material inspired stylesheet for PySide2, PySide6, PyQt5 and PyQt6
https://qt-material.readthedocs.io/en/latest/
BSD 2-Clause "Simplified" License
2.22k stars 240 forks source link

Question about how to only use `resources_rc.py` and `theme.qss` to apply stylesheet after `export_theme()` #69

Open r00t1900 opened 1 year ago

r00t1900 commented 1 year ago

I would like that my application has not extra resource folder to storage .svg files. After use qt_material.export_theme() I got a theme folder, theme.qss and resources.rcc.

I use pyrcc5 tool to convert resources.rcc into resources_rc.py and import it in my main.py, but it does not work. And the official example also did not say anything about the usage about resources.rcc but just told us to call QDir.addSearchPath. But if add the search path means that application use a real folder as resources source.

Can official give a clear mind about how to use qt_material exported theme resources in pyqt5 application by QResource Solution? Thx.