How do I obtain the current icon theme?

400 Views Asked by At

How can I obtain the current system icon theme in a Qt application? I tried QIcon::themeName, but it just returns an empty string. (But QIcon::fallbackThemeName works?!) Is there some "special trick" to using this method I am missing, or some other way to obtain the current theme name?

Possibly related to this, but none of the answers there seem viable. (Edit: Okay, one of the methods there does work... after I fix the OP's typos . However, I'd prefer not relying on a Gnome-specific technique or needing to execute an external process.)

0

There are 0 best solutions below