[Interest] Darker disabled icon state
André Somers
andre at familiesomers.nl
Tue Jan 28 10:33:18 CET 2014
Etienne Sandré-Chardonnal schreef op 26-1-2014 22:41:
> Dear all,
>
> I have a nice "dark" theme in my app now, except that disabled icons
> appear too bright. I would like to make them darker automatically
> (without setting a dark disabled state image manually for all icons).
>
> Is writing a QIconEngine subclass the only choice here?
I think it is the logical choice to make, yes. Do take care to use V2
though. It has an extended API compared to QIconEngine.
> >From the docs, the only explained way to add a custom QIconEngine is
> by creating a QIconEnginePlugin. Is it possible to have it inside the
> app executable and not as an external library plugin?
You can make plugins static, so that should be possible:
http://qt-project.org/doc/qt-4.8/plugins-howto.html#static-plugins
André
More information about the Interest
mailing list