January 2018
Intermediate to advanced
486 pages
11h 28m
English
The following are the selector types you can use in Qt style sheets. Using them wisely and efficiently can tremendously reduce the amount of code needed for style sheets and changing the look and feel of a Qt application:
|
Selector Type |
Example |
Description |
|
Universal |
* |
These all are widgets |
|
Type |
QPushButton |
These are widgets of the specified type and its subclasses |
|
Property |
QPushButton[text='Browse'] |
These are widgets with a specified property set to a specified value |
|
Class |
.QPushButton |
These are widgets with a specified type, but not its subclasses |
|
ID |
QPushButton# inputPushButton |
These are widgets with a specified type and objectName |
|
Descendant |
QDialog QPushButton |
These ... |