PDA

View Full Version : Using css for all QFrame's except one.



babu198649
3rd July 2008, 14:07
hi
i want to use a common style sheet for all the QFrame,s which can be done like this.

QApplication a(argc, argv);
a.setStyleSheet("QFrame {background-image: url(qt.png);}");

if any one of the QFrame object needs different stylesheet ,how to get it.

jpn
5th July 2008, 18:42
You may use selectors (http://doc.trolltech.com/4.4/stylesheet-syntax.html#selector-types).

babu198649
10th July 2008, 08:05
You may use selectors.
A selector Matches all the widgets ,i want to exclude one of them.