Re: [Qgis-user] Qgis 3.10 Plugin resources.qrc

2020-10-23 Thread Raymond Nijssen
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

Re: [Qgis-user] Qgis 3.10 Plugin resources.qrc

2020-10-23 Thread Raymond Nijssen
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

[Qgis-user] Qgis 3.10 Plugin resources.qrc

2020-10-22 Thread 1520 gis
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