|
QWindowKit
1.5.1.0
Cross-platform window customization framework
|
StyleAgent provides some features related to system theme. More...
Inherits QObject.
Signals | |
| void | systemThemeChanged () |
| void | systemAccentColorChanged () |
Public Member Functions | |
| StyleAgent (QObject *parent=nullptr) | |
| ~StyleAgent () override | |
| SystemTheme | systemTheme () const |
| QColor | systemAccentColor () const |
StyleAgent provides some features related to system theme.
Qt6.6 started to support system theme detection, this class is intended as an auxiliary support for lower versions of Qt. If your Qt already supports it, it is recommended that you don't include this class in your build system.
|
explicit |
Constructor. Since it is not related to a concrete window instance, it is better to be used as a singleton.
|
overridedefault |
Destructor.
| QColor systemAccentColor | ( | ) | const |
Returns the system accent color.
|
signal |
This signal is emitted when the system accent color changes.
| StyleAgent::SystemTheme systemTheme | ( | ) | const |
Returns the system theme.
|
signal |
This signal is emitted when the system theme changes.