[Interest] QIcon and multiple themes

Joseph Crowell joseph.w.crowell at gmail.com
Fri Oct 18 12:45:25 CEST 2013


I would load the theme files directly off the hard drive (not in the 
resource file) and use the resource file only for application-specific 
and flags, etc icons.

On 18/10/2013 07:01 PM, Mitch Curtis wrote:
> 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
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest




More information about the Interest mailing list