[Qgis-developer] Python renderer plugin icon
Chris Crook
ccrook at linz.govt.nz
Tue Jan 26 17:03:55 EST 2010
I'm wanting to associate an icon with a python based renderer plugin, so that it looks like the other renderers in the symbology dialog. It seems that the icon defined by name in the QgsRendererV2AbstractMetadata constructor.
I guess that the icon name refers to the name of a QIcon resource, and I imagine that I can install the resource with this name somewhere as part of my initGui function of my plugin class factory.
However my knowledge of PyQt lets me down at this point. Can anyone give me any clues as to how to build an icon resource from a .png file and how to install it so that it shows up as an icon in the Symbology dialog?
Thanks
Chris
______________________________________________________________________________________________________
This message contains information, which is confidential and may be subject to legal privilege.
If you are not the intended recipient, you must not peruse, use, disseminate, distribute or copy this message.
If you have received this message in error, please notify us immediately (Phone 0800 665 463 or info at linz.govt.nz) and destroy the original message.
LINZ accepts no responsibility for changes to this email, or for any attachments, after its transmission from LINZ.
Thank you.
______________________________________________________________________________________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/qgis-developer/attachments/20100127/5cf52be9/attachment.html
More information about the Qgis-developer
mailing list