Tom Schindl wrote:
> Hi,
> 
> I'm haveing multiple problems when useing QWidget#setStylesheet().
> 
> 1. Setting gradient on container is repeated in child controls
> 
> -------------8<-------------
...
> -------------8<-------------
> 
> Results in the following output in gradient.tiff. I think I'm doing
> something wrong.

When you set a stylesheet on the parent, the stylesheet will be 
re-applied to all children. What you probably wanted was to have the 
stylesheet applied to the parent onlye. The proper way is to add a 
selector in the stylesheet, for instance based on the objectname.

QWidget widget = new QWidget();
widget.setObjectName("root");
widget.setStyleSheet("#root { background-color: .... }");

> 2. Setting background to controls with a scrollbar for example a QList
> results in an unusable Scrollbar.
> 
> -------------8<-------------
...
> -------------8<-------------

This appears to be a bug in the 4.4 branch. It is fixed in 4.5 already, 
so you should get the fix as soon as we get our 4.5 release out, which 
should happen in the not-too-distant future ;)

-
Gunnar
_______________________________________________
Qt-jambi-interest mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt-jambi-interest

Reply via email to