QIcon: Fallback behavior if icon not in the curren theme

c.buhtz at posteo.jp c.buhtz at posteo.jp
Thu Jul 6 13:42:02 BST 2023


Hello,

am I right to say loading icons like this is usual and the recommended 
way (focusing on GNU Linux here)?

     QIcon.fromTheme('media-playback-pause')

How does Qt react if an Icon (by its name) is not available in the 
currents system default theme?

Is there a fallback behavior? Maybe using Qt-inbuild icons from QStyle 
or an alternative theme?

If there is such a behavior in Qt itself how can this be activated?

If not I have to deal with it for my own of course.

Kind
Christian


More information about the PyQt mailing list