[Interest] QIcon and multiple themes
Mitch Curtis
mitch.curtis at digia.com
Fri Oct 18 11:01:55 CEST 2013
On 10/16/2013 11:44 AM, Stefan Böhmann wrote:
> Hi list,
>
> I want to provide a custom set of icons for my application without using resources (license and size constraints). So all icons are installed together with the application. I also have not only one single theme but a generic one (Oxygen for example), some specific (e.g. flags) and an application-specific.
>
> So my installation directory looks like this:
>
> icons
> oxygen
> 16x16
> …
> index.theme
> flags
> 16x16
> …
> index.theme
> app
> 16x16
> …
> index.theme
>
>
> How can I load the icons easiest?
> I know QIcon :: setTheme and friends, but do not see how I can apply it with multiple themes. Or should I write my own QIconEnginePlugin?
>
> BTW: Ease of use is more important than ease of implementation.
>
> Any tip is appreciated.
>
> Thanks,
> Stefan
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
>
QFileSelector might suit your needs. It's available with 5.2:
http://doc-snapshot.qt-project.org/qdoc/qfileselector.html#details
More information about the Interest
mailing list