You can set a style sheet for a specific widget only. Look in examples.

On 2/23/12 6:34 AM Pritam wrote:

On Thursday 23 February 2012 05:46 PM, Николай Шатохин wrote:
So, If I change StyleSheet of CentralWidget then I must change StyleSheets of 
all children Widgets? So, is it possible to see default stylesheets of widgets? 
What stylesheet do I must to set to create button with rounded corners and 
different pictures on click, mouse over, selection, normal and disabled states? 
And how can I turn off ugly pink selection?

There are no default stylesheets. Default style is governed by platform 
style(QStyle). You can do somethings with stylesheets on top of that.Most 
probably the problem you are facing is actually a css feature as andre 
explained in a separate mail. It takes sometime to get comfortable with style 
rules. You can go through stylesheet syntax and examples carefuly again, they 
have lot of examples for all types of rules. If you still face problem you cant 
post your example or css rules here, someone will correct them.




2012/2/23 <[email protected]>

This isn't possible. I know there where a hack/workaround but this doesn't work 
either.

Best Regards

Am 23.02.2012 um 12:14 schrieb Николай Шатохин <[email protected]>:


> Hello.
>
> When I set custom StyleSheet in CentralWidget or MainWindow, all children 
> widgets and elements lost their default StyleSheets. How to keep default 
> StyleSheets in cheldren elements? And how to disable ugly pink selection in 
> buttons when I change it StyleSheets?
>
> Best regards,
> Nick

> _______________________________________________
> Interest mailing list
> [email protected]
> http://lists.qt-project.org/mailman/listinfo/interest




--
Regards,
Pritam
**************** 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***


_______________________________________________
Interest mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to