<div dir="ltr"><div class="gmail_quote">Il giorno mer 23 set 2020 alle ore 23:15 Phil Thompson <<a href="mailto:phil@riverbankcomputing.com" target="_blank">phil@riverbankcomputing.com</a>> ha scritto:<br></div><div class="gmail_quote"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 23/09/2020 20:15, Patrick Stinson wrote:<br>
> Phil,<br>
> <br>
> Could you explain what makes the Qt resource system obsolete in a<br>
> PyQt6 context?<br>
<br>
<a href="https://www.riverbankcomputing.com/static/Docs/pyqtdeploy/pyrcc.html" rel="noreferrer" target="_blank">https://www.riverbankcomputing.com/static/Docs/pyqtdeploy/pyrcc.html</a><br>
<br>
> The Qt resource system itself seems to play an<br>
> essential role in the toolkit. If you think it does not provide an<br>
> essential function, then I am intrigued to hear more.<br>
<br>
If there is something that you cannot do with existing Python techniques <br>
then I'll happily reconsider.<br></blockquote><div><br></div><div>In my case, among other things (custom fonts, images) I mostly use pyrcc for my own icon theme with about 500 icons, which allows me to use <font face="monospace">QIcon.fromTheme('icon-name')</font>, which I use it *a lot*: mostly because I find it much simpler and easier to read than the full image path constructor, but also because it allows to use the fall back mechanism (under Linux, at least) if an icon is not in the selected theme, and finally to use different icons according to the icon size.</div><div><br></div><div><div>Maybe I'm not aware of other ways to use the resource system, as I always used pyrcc. If that won't be available, will setThemeSearchPaths work anyway? Will all other ":/" resource loading keep their functionalities when using local relative paths (or importlib.resources)?</div></div><div><br></div><div>Thanks,</div><div>Maurizio</div></div><div><br></div></div></div></div></div></div></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">È difficile avere una convinzione precisa quando si parla delle ragioni del cuore. - "Sostiene Pereira", Antonio Tabucchi<br><a href="http://www.jidesk.net" target="_blank">http://www.jidesk.net</a></div></div>