<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.5897" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=242224921-26012010><FONT face=Arial size=2>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.</FONT></SPAN></DIV>
<DIV><SPAN class=242224921-26012010><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=242224921-26012010><FONT face=Arial size=2>I guess that the
icon name refers to the name of a QIcon resource, and I imagine
that </FONT></SPAN><SPAN class=242224921-26012010><FONT face=Arial size=2>I
can install the resource with this name somewhere as part of my initGui function
of my plugin class factory. </FONT></SPAN></DIV>
<DIV><SPAN class=242224921-26012010><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=242224921-26012010><FONT face=Arial size=2>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?</FONT></SPAN></DIV>
<DIV><SPAN class=242224921-26012010><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=242224921-26012010><FONT face=Arial
size=2>Thanks</FONT></SPAN></DIV>
<DIV><SPAN class=242224921-26012010><FONT face=Arial
size=2>Chris</FONT></SPAN></DIV>
<DIV>
<HR>
<DIV>This message contains information, which is confidential and may be subject
to legal privilege. <BR>If you are not the intended recipient, you must not
peruse, use, disseminate, distribute or copy this message.<BR>If you have
received this message in error, please notify us immediately (Phone 0800 665 463
or <A href="mailto:sinfo@linz.govt.nz">info@linz.govt.nz</A> ) and destroy the
original message.</DIV>
<DIV>LINZ accepts no responsibility for changes to this email, or for any
attachments, after its transmission from LINZ.</DIV>
<DIV> </DIV>
<DIV><STRONG>Thank you.</STRONG> <BR></DIV>
<HR>
</DIV>
</BODY></HTML>