> Hello!
>
> I have a widget that has his own style sheet and for some reason
> it doesn't show with it when its set up as a child of another widget, with
> it's own style sheet too.
>
> I realized that the widget inherit its parent style, because any time I
> change the style,
> the child changes too. It has some way to set the child's own style?
>
> I'm using Qt-Jambi 4.5 with Eclipse Qt Designer Integration.
>
> I would appreciate some help.
this behavior can be corrected if you redirect you stylesheet to you
specifict Widget.
Instead of using something like
widget.serStyleSheet("color :blue;");
Use
widget.setStyleSheet("QWidget#widget{color: blue;}");
Also, avoid the configuration of individual widgets using the first syntaxis,
because some you can obtain some rare behavior. Insteat, try to put all of
your stylesheet in one place (the all styleSheet properties on the higher
Widget).
--
Ing. José Arcángel Salazar Delgado
Nettrace
Av 27 #6 col. Venustiano Carranza.
Boca del río, Ver.
Tel. Oficina 9-27-54-78
_______________________________________________
Qt-jambi-interest mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt-jambi-interest