|
QtCanpool 3.3.0
|
WindowStyleAgent provides some features related to system theme. 更多...
#include <qxwindow/style/windowstyleagent.h>

Public 类型 | |
| enum | SystemTheme { Unknown , Light , Dark , HighContrast } |
Public 成员函数 | |
| WindowStyleAgent (QObject *parent=nullptr) | |
| Constructor. | |
| ~WindowStyleAgent () override | |
| Destructor. | |
| SystemTheme | systemTheme () const |
| Returns the system theme. | |
| void | systemThemeChanged () |
| This signal is emitted when the system theme changes. | |
Protected 成员函数 | |
| WindowStyleAgent (WindowStyleAgentPrivate &d, QObject *parent=nullptr) | |
Protected 属性 | |
| const std::unique_ptr< WindowStyleAgentPrivate > | d_ptr |
WindowStyleAgent 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.
在文件 windowstyleagent.h 第 13 行定义.
| 枚举值 | |
|---|---|
| Unknown | |
| Light | |
| Dark | |
| HighContrast | |
在文件 windowstyleagent.h 第 21 行定义.
|
explicit |
Constructor.
Since it is not related to a concrete window instance, it is better to be used as a singleton.
在文件 windowstyleagent.cpp 第 44 行定义.
|
override |
Destructor.
在文件 windowstyleagent.cpp 第 52 行定义.
|
protected |
在文件 windowstyleagent.cpp 第 68 行定义.
| WindowStyleAgent::SystemTheme QxWindow::WindowStyleAgent::systemTheme | ( | ) | const |
Returns the system theme.
在文件 windowstyleagent.cpp 第 59 行定义.
| void QxWindow::WindowStyleAgent::systemThemeChanged | ( | ) |
This signal is emitted when the system theme changes.
|
protected |
在文件 windowstyleagent.h 第 36 行定义.