I want to change background color of a button. I've done this with button.setStyleSheet(u'background-color:' + color.name()) - the full source code is below: https://bitbucket.org/techtonik/pyside-copy-paste/src/c78c9a7cf9ac/05.paint.button.py
However, together with background it also changes current system style like rounded corners, borders and smooth gradient (Fedora 15, Gnome 3). Qt Style Sheets documentation at http://doc.qt.nokia.com/latest/stylesheet.html explicitly says that "Style sheets are applied on top of the current widget style, meaning that your applications will look as native as possible, but any style sheet constraints will be taken into consideration." Is it a bug or a 'feature'? How can I change only background color for an element? -- anatoly t. _______________________________________________ PySide mailing list [email protected] http://lists.pyside.org/listinfo/pyside
