![]() |
Qt 6.x
The Qt SDK
|
Go to the source code of this file.
Classes | |
| class | MyPushButton |
| [25] More... | |
| class | ns::MyPushButton |
Namespaces | |
| namespace | ns |
| [26] | |
Functions | |
| qApp | setStyleSheet ("QPushButton { color: white }") |
| [21] | |
| myPushButton | setStyleSheet ("* { color: blue }") |
| [21] | |
| myPushButton | setStyleSheet ("color: blue") |
| [22] | |
| qApp | setStyleSheet ("QGroupBox { color: red; } ") |
| [23] | |
| qApp | setStyleSheet ("QGroupBox, QGroupBox * { color: red; }") |
| [24] | |
| MyPushButton QPushButton | setStyleSheet ("MyPushButton { background: yellow; }") |
| qApp | setStyleSheet ("ns--MyPushButton { background: yellow; }") |
| qApp | setStyleSheet ("QLineEdit { background-color: yellow }") |
| [32] | |
| myDialog | setStyleSheet ("QLineEdit#nameEdit { background-color: yellow }") |
| [89] | |
| nameEdit | setStyleSheet ("background-color: yellow") |
| [90] | |
| nameEdit | setStyleSheet ("color: blue; background-color: yellow") |
| [91] | |
| nameEdit | setStyleSheet ("color: blue;" "background-color: yellow;" "selection-color: yellow;" "selection-background-color: blue;") |
| [92] | |
| nameEdit | setProperty ("mandatoryField", true) |
Variables | |
| QLineEdit * | nameEdit = new QLineEdit(this) |
| [93] | |
| QLineEdit * | emailEdit = new QLineEdit(this) |
| QSpinBox * | ageSpinBox = new QSpinBox(this) |
| ageSpinBox setProperty | ( | "mandatoryField" | , |
| true | |||
| ) |
| myPushButton setStyleSheet | ( | "* { color: blue }" | ) |
[21]
[22]
| nameEdit setStyleSheet | ( | "background-color: yellow" | ) |
[90]
[91]
| myPushButton setStyleSheet | ( | "color: blue" | ) |
[22]
[23]
| nameEdit setStyleSheet | ( | "color: blue;" "background-color: yellow;" "selection-color: yellow;" "selection-background-color: blue;" | ) |
[92]
[93]
| MyPushButton QPushButton setStyleSheet | ( | "MyPushButton { background: yellow; }" | ) |
| qApp setStyleSheet | ( | "ns--MyPushButton { background: yellow; }" | ) |
References QStyleOption::initFrom(), opt, and QStyle::PE_Widget.
Here is the call graph for this function:| myDialog setStyleSheet | ( | "QLineEdit { background-color: yellow }" | ) |
[32]
[88]
[89]
| myDialog setStyleSheet | ( | "QLineEdit#nameEdit { background-color: yellow }" | ) |
[89]
[90]
| qApp setStyleSheet | ( | "QPushButton { color: white }" | ) |
[21]
Definition at line 101 of file doc_src_stylesheet.cpp.
Definition at line 98 of file doc_src_stylesheet.cpp.