QWindowKit  1.5.1.0
Cross-platform window customization framework
Loading...
Searching...
No Matches
StyleAgent Class Reference

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
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ StyleAgent()

StyleAgent ( QObject *  parent = nullptr)
explicit

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

◆ ~StyleAgent()

~StyleAgent ( )
overridedefault

Destructor.

Member Function Documentation

◆ systemAccentColor()

QColor systemAccentColor ( ) const

Returns the system accent color.

◆ systemAccentColorChanged

void systemAccentColorChanged ( )
signal

This signal is emitted when the system accent color changes.

◆ systemTheme()

StyleAgent::SystemTheme systemTheme ( ) const

Returns the system theme.

◆ systemThemeChanged

void systemThemeChanged ( )
signal

This signal is emitted when the system theme changes.


The documentation for this class was generated from the following files: