QtCanpool 3.3.0
载入中...
搜索中...
未找到
QxWindow::WindowStyleAgent类 参考

WindowStyleAgent provides some features related to system theme. 更多...

#include <qxwindow/style/windowstyleagent.h>

类 QxWindow::WindowStyleAgent 继承关系图:

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 行定义.

成员枚举类型说明

◆ SystemTheme

枚举值
Unknown 
Light 
Dark 
HighContrast 

在文件 windowstyleagent.h 第 21 行定义.

构造及析构函数说明

◆ WindowStyleAgent() [1/2]

QxWindow::WindowStyleAgent::WindowStyleAgent ( QObject *  parent = nullptr)
explicit

Constructor.

Since it is not related to a concrete window instance, it is better to be used as a singleton.

在文件 windowstyleagent.cpp 第 44 行定义.

◆ ~WindowStyleAgent()

QxWindow::WindowStyleAgent::~WindowStyleAgent ( )
override

Destructor.

在文件 windowstyleagent.cpp 第 52 行定义.

◆ WindowStyleAgent() [2/2]

QxWindow::WindowStyleAgent::WindowStyleAgent ( WindowStyleAgentPrivate &  d,
QObject *  parent = nullptr 
)
protected

在文件 windowstyleagent.cpp 第 68 行定义.

成员函数说明

◆ systemTheme()

WindowStyleAgent::SystemTheme QxWindow::WindowStyleAgent::systemTheme ( ) const

Returns the system theme.

在文件 windowstyleagent.cpp 第 59 行定义.

◆ systemThemeChanged()

void QxWindow::WindowStyleAgent::systemThemeChanged ( )

This signal is emitted when the system theme changes.

类成员变量说明

◆ d_ptr

const std::unique_ptr<WindowStyleAgentPrivate> QxWindow::WindowStyleAgent::d_ptr
protected

在文件 windowstyleagent.h 第 36 行定义.


该类的文档由以下文件生成: