Hi all,
I made my custom widget based on QWidget, just several button and labels. How to set style sheet from my custom widget?
I set object name for widget
myWidget->setObjectName("myWidget");
myWidget->setObjectName("myWidget");
To copy to clipboard, switch view to plain text mode
and wrote small style sheet
color: red;
}
QWidget#myWidget {
color: red;
}
To copy to clipboard, switch view to plain text mode
but nothing happened. 
The reason why I want to do it this way is because I want to have something like this in the future:
color: red;
}
QWidget#myWidget > QPushButton {
color: red;
}
To copy to clipboard, switch view to plain text mode
Bookmarks