It is possible to apply a Stylesheet to a single widget, or to a class of widgets, or to widgets with some certain properties:
He could also call setStyleSheet on the widget to force a certain stylesheet for the widget after applying the other stylesheet on the application.Qt Code:
// applies to the QLabel object with the objectName "certain-label" QLabel#certain-label { color: blue; font-weight: bold; }To copy to clipboard, switch view to plain text mode
Stylesheets can much more than this ...
Bookmarks