[QGIS-Developer] Heads-up: PyQt6 removes pyrcc
Richard Duivenvoorde
rdmailings at duif.net
Thu Sep 24 00:29:25 PDT 2020
Hi Nyall and python devs,
I had to lookup what pyrcc was doing, because apparently I did not use it anymore...
I think this is the most clear:
https://www.riverbankcomputing.com/static/Docs/pyqtdeploy/pyrcc.html
It is/was a way to bundle several resources (images etc) into ONE (in our case python) file.
According to the "discussion on the PyQt list", there is actually not so much benefit for python (for C++ it is) and it is just easier to load images itself in a python way (and create QIcons with the image directly instead of using a 'resource path'), see link above about how.
Thanks Nyall for looking into the future :-)
Regards,
Richard Duivenvoorde
PS I create a Feature Request in Plugin Builder plugin to remove pyrcc in future, as in my experience a lot of people start of their first plugin with the Plugin Builder, and it is/was actually using pyrcc.
On 9/24/20 12:24 AM, Nyall Dawson wrote:
> Hi list,
>
> Just a quick heads up that PyQt6 is REMOVING the pyrcc tool (see
> download page at
> https://riverbankcomputing.com/software/pyqt/download).
>
> While this will take some time to impact QGIS, if you're a plugin
> developer and still using this legacy tool then it's something to be
> aware of, and start adapting for!
>
> You can (and should!) already remove the use of this tool from your
> plugins. There's better approaches to achieve everything that the tool
> used to do, and moving to these will make your plugins more portable
> and easier to develop.
>
> More related discussion on the PyQt list:
> https://www.riverbankcomputing.com/pipermail/pyqt/2020-September/043209.html
More information about the QGIS-Developer
mailing list