[Qt-interest] Removing Qt Stylesheet from child dialog
André Somers
andre at familiesomers.nl
Wed Jan 26 22:43:42 CET 2011
You can not unset styling in CSS syntax. That is a known limitation. The cascading effect will make sure that styles set at a higher level cascade through to the lower ones. That is often desirable, and sometimes a pita, as you are finding out.
The only solution is to make your CSS more specific to begin with. If you don't want something styled, make sure the styles selectors do not match. One way to do this is to use a property selector and set a corresponding, custom property on the dialogs that you want you style to apply to.
André
Verstuurd vanaf mijn iPhone
Op 26 jan. 2011 om 09:03 heeft NoRulez <norulez at me.com> het volgende geschreven:
> I already tried it, but it doesn't work
>
> Best Regards
>
> Am 25.01.2011 um 22:33 schrieb Constantin Makshin <cmakshin at gmail.com>:
>
>> Try passing an empty string to the dialog's setStyleSheet() function/method.
>>
>> On Monday 24 January 2011 23:13:48 NoRulez wrote:
>>>> Hi,
>>>>
>>>> when I have set a stylesheet with app.setStyleSheet() how can I remove the stylesheet for some specific QDialogs?
>>>>
>>>> Best Regards
>>>> NoRulez
>> _______________________________________________
>> Qt-interest mailing list
>> Qt-interest at qt.nokia.com
>> http://lists.qt.nokia.com/mailman/listinfo/qt-interest
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at qt.nokia.com
> http://lists.qt.nokia.com/mailman/listinfo/qt-interest
More information about the Qt-interest-old
mailing list