<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
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.<br>
<br>
<div class="moz-signature"><b>Worth Lutz</b><br>
<br>
<br>
</div>
<div class="moz-cite-prefix">On 5/6/2016 8:08 AM, matteo wrote:<br>
</div>
<blockquote cite="mid:572C8948.5060707@gmail.com" type="cite">Hi
Richard,
<br>
<br>
thanks for also your support.. It seems that in some way the
problem has been solved.
<br>
<br>
For sure in all my attempts I mixed some files and other stuff..
So what seems working is:
<br>
<br>
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
<br>
<br>
2. edit the resource and add the other icons (even in other
folders, mines for examples are in plugins/plugin_root/icons/)
<br>
<br>
3. save the UI and run the compilation of the resources as suggest
by Ginetto
<br>
<br>
pyrcc4 -o resources.py resources.qrc
<br>
<br>
now the plugin shows the icon in the pushbutton..
<br>
<br>
I don't know how/what I did.. If I mixed some commands..
<br>
<br>
For the moment it seems working.. (tried to add other icons,
reload the plugin, make some changes in the dialog.py)
<br>
<br>
So thanks to all the feedbacks.. (maybe it is worth to add this
part in the cookbook?)
<br>
<br>
Cheers
<br>
<br>
Matteo
<br>
_______________________________________________
<br>
Qgis-developer mailing list
<br>
<a class="moz-txt-link-abbreviated" href="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.osgeo.org</a>
<br>
List info: <a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/qgis-developer">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a>
<br>
Unsubscribe:
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/qgis-developer">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
</blockquote>
<br>
</body>
</html>