I designed the GUI in
QT 5 Designer. I also added the symbols to the button. After I compiled the
ui file with
pyuic5 I changed the absolute path to the symbols to the relative path in my plugin folder after putting the downloaded
svg files (like its discribed here and there) in the plugin directory.
Running the file
QgsAlkOsmCompare_dialog.py in the terminal, produces this:
All icons show up in their correct position (I cutted the screenshot because of its size).
Opening my plugin in
QGIS is functional, but the icons disappear. Even if I run the same
py file in the
./QGIS/QGIS3/profiles/default/python/plugins folder the plugin doesn't show the icons. I tried it with
png file instead but nothing changed.
Is it impossible to show buttons with icons in QGIS? I guess no, because I have seen icons in some of the GDAL processing functions too.
Can I import these internal QGIS icons in my GUI file or is it compiled to the qgis.exe/qgis or some other kind of resource file?