QIconEngine virtual_hook() support
Maurizio Berti
maurizio.berti at gmail.com
Tue Sep 2 01:46:55 BST 2025
QIconEngine does not support virtual_hook().
At this time, this is not a huge problem with Qt6, as they made isNull()
and scaledPixmap() virtual since 6.0.
Yet, I also realize that Qt5 is fundamentally EOL (but we know it's still
in use), but I also think that we cannot exclude the possibility of future
Qt6/7 versions that may add further hooks (who knows, maybe they may want
to add support for emojis in QIcon - I actually thought about that) while
"forgetting" related virtual functions again in the meantime, unless they
decide to drop the virtual_hook approach to begin with.
I don't have enough C++/sip knowledge to understand if there may be
limitations from the Python perspective, but, if there aren't, would it be
possible to add virtual_hook() to Qt6 (and, possibly, Qt5 as well)?
If it's not possible for specific C++/Python technical reasons, I'd still
be curious to know the reason, just for the sake of understanding.
Best regards,
MaurizioB
--
È difficile avere una convinzione precisa quando si parla delle ragioni del
cuore. - "Sostiene Pereira", Antonio Tabucchi
http://www.jidesk.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20250902/46389468/attachment.htm>
More information about the PyQt
mailing list