Hi! I guess what you missed it to include the
import resources_rc in your main python file .. might be that running the script fixed that for you.. but without in importing the resources_rc file the icon will not be available to Qt regards Werner On Fri, Nov 8, 2013 at 4:18 PM, McDonaldR <mcdona...@angus.gov.uk> wrote: > Hmmm, not sure then… > > > > I had a similar problem with my icons not showing up and had to rebuild the > plugin using the two commands from the cookbook. That fixed it for me. > > > > Maybe someone else on the list will have some more information and advice? > > > > Ross > > > > From: Fabrizio murè [mailto:fabriziom...@gmail.com] > Sent: 08 November 2013 14:14 > To: McDonaldR > Subject: Re: [Qgis-user] plugin icon visualization > > > > thanks Ross for your reply! > > Yes I did steps you're mentioning and below I report my plugin folder > configuration. > > Now I realized that the same situation (no icon displayed) happens with the > OpenLayers Plugin 1.1.1 > > > > > > > > > > Icons are correctly displayed in the Plugin Manager as reported below: > > > > > > > > It looks strange, migth it be a setting on my PC Windows desktop? > > I'm just curious to understand the reason.. > > > > Thanks in advance. > > > > Fabrizio > > > > 2013/11/8 McDonaldR <mcdona...@angus.gov.uk> > > Hi Fabrizio > > > > Do you have “icon.png” in your plugin folder? > > > > Did you run the two make commands to build the python files? > > > > pyuic4 -o ui_vector_selectbypoint.py ui_vector_selectbypoint.ui > > pyrcc4 -o resources.py resources.qrc > > > > This is the updated PyQGIS cookbook recipe for building a plugin: > http://www.qgis.org/en/docs/pyqgis_developer_cookbook/plugins.html > > > > Ross > > > > From: qgis-user-boun...@lists.osgeo.org > [mailto:qgis-user-boun...@lists.osgeo.org] On Behalf Of Fabrizio murè > Sent: 08 November 2013 11:41 > To: qgis-user@lists.osgeo.org > Subject: [Qgis-user] plugin icon visualization > > > > Hi all, I'm relatively new with QGIS environment and I wish to learn how to > develop a Python Plugin.. i'm reading useful info in the tutorial "Building > a simple plugin" > @http://www.qgisworkshop.org/html/workshop/plugins_tutorial.html > > > > > > Probably mine is a very trivial question... > > I'm able to activate my plugin in QGIS 2.0.1, but i have some problem with > icon visualization on plugins toolbar and in the plugins menu. > > My plugin is present in the list but the button area appears empty, without > icon "icon.png" > > How can i activate the icion visualization? > > > > I specified icon filename in the metadata.txt file.. > > > > Thanks in advance, for any help you can give me! > > > > Regards, > > Fabrizio > > > > > > > > > > This message is strictly confidential. If you have received this in error, > please inform the sender and remove it from your system. If received in > error you may not copy, print, forward or use it or any attachment in any > way. This message is not capable of creating a legal contract or a binding > representation and does not represent the views of Angus Council. Emails may > be monitored for security and network management reasons. Messages > containing inappropriate content may be intercepted. Angus Council does not > accept any liability for any harm that may be caused to the recipient system > or data on it by this message or any attachment. > > > _______________________________________________ > Qgis-user mailing list > Qgis-user@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/qgis-user > > > > > > This message is strictly confidential. If you have received this in error, > please inform the sender and remove it from your system. If received in > error you may not copy, print, forward or use it or any attachment in any > way. This message is not capable of creating a legal contract or a binding > representation and does not represent the views of Angus Council. Emails may > be monitored for security and network management reasons. Messages > containing inappropriate content may be intercepted. Angus Council does not > accept any liability for any harm that may be caused to the recipient system > or data on it by this message or any attachment. > > > _______________________________________________ > Qgis-user mailing list > Qgis-user@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/qgis-user _______________________________________________ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user