Hi Julierme,
I see, you want the images to be used in the GUI.
Strange that a plugin reload fixes the problem and I cannot tell you
why. The only thing I noticed is that the 'import error' is trying to
import module 'resources_rc' and your python file is called
'resources.py' (and not
Hi Julierme,
You need(ed) to convert the .qrc file to a .py file with rcc. See:
https://doc.qt.io/qt-5/resources.html#resources-in-a-qt-for-python-application
But personally I'm not using it anymore, cause you can just use the .png
files straight in your code and I find it easier.
For
Dear all,
I have created a Qgis plugin and I use three images in the resources.qrc
file shown below. Everything works fine before I restart Qgis. If I restart
Qgis, I hit an error ModuleNotFoundError: No module named 'resources_rc'. And
the plugin won't start. Any comment will be very