[Qgis-developer] Python renderer plugin icon

Martin Dobias wonder.sk at gmail.com
Fri Jan 29 15:32:20 EST 2010


On Fri, Jan 29, 2010 at 10:25 AM, Martin Dobias <wonder.sk at gmail.com> wrote:
> On Tue, Jan 26, 2010 at 11:03 PM, Chris Crook <ccrook at linz.govt.nz> wrote:
>> 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.
>
> Hi Chris,
>
> setting the renderer icon as of now is a bit awkward. I'm going to
> change it so that the metadata contains instance of QIcon, not just as
> file name for the icon. I'll update symbology-ng wiki to give an
> example how to do it.

Done in r12852, updated the wiki page.

Martin


More information about the Qgis-developer mailing list