Loading images of qt designer in python
-
Are you using pyqt or pyside? The workflow with pyqt6 for me is like this:
- Create a .qrc file in your resource/icon directory, setup prefixes and add your files.

- Add the resources in the stylesheet and save your .ui file.
- Then you can create a .py file from your .qrc file with pyside6 using:
pyside6-rcc -o desiredNewPythonFileName.py yourQrcFileName.qrc- Open new .py file and change
from PySide6 import QtCoretofrom PyQt6 import QtCore - Import the new .py file to your project with
import YourFileName
- Create a .qrc file in your resource/icon directory, setup prefixes and add your files.
-
@jack_8390 "The workflow with pyqt6 for me is like this" - so yes
