[Qt-interest] Preferred method of making embedded linux application themable ?
Scott Aron Bloom
Scott.Bloom at onshorecs.com
Fri Jun 18 17:59:50 CEST 2010
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.
--
Thanks,
Pritam
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.
>
>
**************** CAUTION - Disclaimer *****************
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended
solely
for the use of the addressee(s). If you are not the intended recipient,
please
notify the sender by e-mail and delete the original message. Further,
you are not
to copy, disclose, or distribute this e-mail or its contents to any
other person and
any such actions are unlawful. This e-mail may contain viruses. Infosys
has taken
every reasonable precaution to minimize this risk, but is not liable for
any damage
you may sustain as a result of any virus in this e-mail. You should
carry out your
own virus checks before opening the e-mail or attachment. Infosys
reserves the
right to monitor and review the content of all messages sent to or from
this e-mail
address. Messages sent to or from this e-mail address may be stored on
the
Infosys e-mail system.
***INFOSYS******** End of Disclaimer ********INFOSYS***
_______________________________________________
Qt-interest mailing list
Qt-interest at trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-interest
More information about the Qt-interest-old
mailing list