[Qgis-developer] Images and button in Qt Designer

Luigi Pirelli luipir at gmail.com
Fri May 6 03:13:50 PDT 2016


do:
pyrcc4 -o resources_rc.py resources.qrc

pyrcc4 --help => -o means output files to be generated
Luigi Pirelli

**************************************************************************************************
* Boundless QGIS Support/Development: lpirelli AT boundlessgeo DOT com
* LinkedIn: https://www.linkedin.com/in/luigipirelli
* Stackexchange: http://gis.stackexchange.com/users/19667/luigi-pirelli
* GitHub: https://github.com/luipir
* Mastering QGIS:
https://www.packtpub.com/application-development/mastering-qgis
**************************************************************************************************


On 6 May 2016 at 12:11, matteo <matteo.ghetta at gmail.com> wrote:
> Hi Ginetto,
>
>
>> please read carefully error mesages
>>
>>> pyrcc4 -o resources.py >>>> resources.qrc <<<<
>>> ImportError: No module named >>>> resources_rc <<<<<
>
>
> I did but I don't get it..
>
> The resource.py and the resource.qrc files are by default present in the
> plugin folder.
>
> If I add an icon with Qt Designer (I put the icon in a icons folder in the
> plugin tree) and I choose the existing resource.qrc file as resource file..
> after the compilation command
>
> pyrcc4 -o resource.py resource.qrc
>
> the loading fails with the cited error of above..
>
> have I to edit in some way the resources.py?
>
> Thanks again
>
> Matteo


More information about the Qgis-developer mailing list