I've searched for a solution to this but to no avail.
I have a form which contains some QPushButtons and a widget (NumberPad) which also contains some QPushButtons. I want to load a single StyleSheet in the form and have two settings for QPushButton; one within the NumberPad widget and one for the others.
QPushButton { ...some Style... } obviously changes them all.
I've tried NumberPad::QPushButton and # etc... I'm not sure how it should work, if at all?
The only solution I can think of, is to create my own MyPushButton and NumPadPushButton and inherit QPushButton. Then in my StyleSheet call these classes like:
.NumPadPushButton{ ....}
.MyPushButton{ ... }
But I'd prefer not to do this just for a style...
Bookmarks