I have a window with two buttons.
I would like to decorate each with a different stylesheet. Of course, they have different object names, but it seems that only a common selector works QPushButton.
I tried:
QPushButton#myBtnObjectName1 {
}
QPushButton#myBtnObjectName2 {
}
Tried the same with replacing #with .or only with #myBtnObjetNameX. Nothing works. Simply:
QPushButton {
}
Am I using the wrong syntax? Or is it simply impossible without getting the code QPushButtonin the code and using a separate class name for each?
source
share