Hello!

I'm trying to change the icon of my python plugin ... but it only changes in 
Plugin Manager, but the icon gets invisible in the qgis toolbar.
First I copied a new png file to the root of my plugin directory (traktor.png).
I changed the icon_path variable in my .py file from icon_path = 
':/plugins/FertilizerMap/icon.png' to icon_path = 
':/plugins/FertilizerMap/traktor.png'
After I changed the resource.qrc to
<RCC>
    <qresource prefix="/plugins/FertilizerMap" >
        <file>traktor.png</file>
    </qresource>
</RCC>

At last I used "pyrcc4 -o resources.py resources.qrc" to compile it. It 
compiles with no errors or warnings.

Did someone experience the same?

Kind regards Lukas

MSC. LUKAS HAUER
Data and Information Sciences

Josephinum Research
Rottenhauser Straße 1, 3250 Wieselburg, Austria
Tel.: +43 7416 52175 630, Fax: +43 7416 52175 645
Web: http://www.josephinum.at, Mail: lukas.ha...@josephinum.at

_______________________________________________
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Reply via email to