How to use icon theme if on/off states are required?
Unsolved
General and Desktop
-
Hello,
I would like to use 2 icon themes (qrc) in my app.
This works fine for single icons, but how does it work with icons where the state like on/off is required?
Via QtCreator you can only set an icon for a theme. The normal variant of setting an on/off icon individually does not work.
Via stylesheet works
qproperty-icon: url(":/icons/white/icon-on.svg") on, url(":/icons/white/icon-off.svg") off;
but the hard-coded "white" url is of no use to me.
On the internet there was talk of "theme_url" instead of only "url" which would make sense, but I can't find that in the documentation and it doesn't work either.
So how does icon themes work with states?
Thank you...