I am using a qss stylesheet for my gui. It works well but I would like to define a different style sheet for my custom widget.
By example, QPushbutton's style works well but I would like to apply a different style for MyQPushButton (extends from QPushButton).
I tried something like this :
MyQPushButton
{
color: #dcdcdc;
// some code here
}
QPushButton
{
color: #b1b1b1;
// some code here
}
But QPushButton's style has been applied on MyQPushButton.
How to override this behavior ?