[Qt-interest] Preferred method of making embedded linux application themable ?

lists4pghanghas lists4pghanghas at gmail.com
Fri Jun 18 20:13:40 CEST 2010


thanks Scott for you insights.
Finally I have my first answered query on list. That means a lot to me.
I have a embedded application where none of the styles match my UI 
requirement. So, I will have to write my own style for all the style 
elements that I am using in my widgets. Or use graphics items which  by 
their very nature depend upon custom drawings.


Thanks again
Pritam

On Friday 18 June 2010 09:29 PM, Scott Aron Bloom wrote:
> If you change styles, the next paint event will change it.
>
> If you have any event handlers, you need to make sure that you don't
> block and forget to forward the the styelchange events...
>
> When Qt 4 came out, style sheets didn't exist, so there was more work on
> it then.  However, now I think most people style via the style sheets
> since it tends to create more platform conformant but different looking,
> where with custom styles you can make your widgets behave in such a
> different manner you break OS conformance, which is quite often the
> goal...
>
> I actually don't think as many people have written full custom styles as
> you think...
>
> Scott
>
>
>
> -----Original Message-----
> From: qt-interest-bounces at trolltech.com
> [mailto:qt-interest-bounces at trolltech.com] On Behalf Of Pritam Ghanghas
> Sent: Friday, June 18, 2010 8:14 AM
> To: qt-interest at trolltech.com
> Subject: Re: [Qt-interest] Preferred method of making embedded linux
> application themable ?
>
> Hi
>
> Anybody interested in sharing some experience on this topic.
> And do I write bad/offending mails. I dont seem to get anyone's
> attention.
>
> On Wed, 2010-06-16 at 20:34 +0530, Pritam Ghanghas wrote:
> >  Hi
> >
> >  What is preferred way of theming a embedded Linux application.
> >  As far as I have read and understood, one has to use a combination of
> >  custom/stock QStyle and QPalette. Then there are stylesheets as well.
> >  But according to docs stylesheets wont work for custom styles.
> >
> >  Is this the right approach?
> >
> >  And what happens when I switch the palette and/or style while
> >  application is running.
> >  Will all the widgets/items in my application redraw themselves
> >  automatically or I will have to do that manually.
> >  I can see a event QEvent::StyleChange. Will it be delivered to every
> >  widget in my application on styleChange?
> >
> >  I searched on google for "theming qt applications",  a lot of links
> came
> >  up but most of them were kde and gtk related  except for this one.
> >
> http://labs.trolltech.com/blogs/2007/11/27/theming-qt-for-fun-and-profit
> / . But till now I have stayed away from created .ui files for UI
> design,
> >  that apporach didnt seem to fit my requirements.
> >
> >  I think this is a question, a lot of Qters would have faced and
> >  researched about. if somebody can give me a few pointer on this, it
> will
> >  be very helpful.
> >
> >
>
>
>
>
>    




More information about the Qt-interest-old mailing list