[QGIS-Developer] Plugin logo

Hauer Lukas lukas.hauer at josephinum.at
Mon Feb 11 07:36:30 PST 2019


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.hauer at josephinum.at

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20190211/c4ea81eb/attachment.html>


More information about the QGIS-Developer mailing list