[Qgis-developer] Images and button in Qt Designer
matteo
matteo.ghetta at gmail.com
Fri May 6 05:08:40 PDT 2016
Hi Richard,
thanks for also your support.. It seems that in some way the problem has
been solved.
For sure in all my attempts I mixed some files and other stuff.. So what
seems working is:
1. when adding a new icon in Qt, I choose to load it from the existing
resource file of the plugin. In the menu click on the arrow and ->
Choose Resource
2. edit the resource and add the other icons (even in other folders,
mines for examples are in plugins/plugin_root/icons/)
3. save the UI and run the compilation of the resources as suggest by
Ginetto
pyrcc4 -o resources.py resources.qrc
now the plugin shows the icon in the pushbutton..
I don't know how/what I did.. If I mixed some commands..
For the moment it seems working.. (tried to add other icons, reload the
plugin, make some changes in the dialog.py)
So thanks to all the feedbacks.. (maybe it is worth to add this part in
the cookbook?)
Cheers
Matteo
More information about the Qgis-developer
mailing list