You have stumbled on a temporary solution. If you open the resources in
QT Designer again, you may see the problem again. Running pyrcc4 will be
necessary.
*Worth Lutz*
On 5/6/2016 8:08 AM, matteo wrote:
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
_______________________________________________
Qgis-developer mailing list
[email protected]
List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer
_______________________________________________
Qgis-developer mailing list
[email protected]
List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer