[Qt-interest] setStylesheet resets all other properties of a widget
Yuvraj
yuvraj.ragupathi at indieontech.com
Wed Feb 24 12:55:11 CET 2010
Giacomo wrote:
> Good morning.
>
> In Qt 4.4.3 I am experiencing the following problem.
>
> Open designer, create a new QWidget, add a QLabel.
>
> Change frameShape property.
>
> set the styleSheet property "font-size:22px;"
>
> The frameShape property is lost.
>
> This applies to all styling properties: setting a stylesheet resets all style
> characteristics, both in designer and runtime.
>
> Is this a known bug?
>
> If so, can anyone tell me which is the release from which the bug has been
> fixed?
>
> In Qt 4.6 the stylesheet work correctly as expected.
>
> Cheers Giacomo.
>
> Elettra - Synchrotron Radiation Facility
> Trieste, Italy.
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
>
>
Apply your style sheet only for QLabel
Thanks
Yuvraj
More information about the Qt-interest-old
mailing list