KStyleManager

KStyleManager Namespace Reference

Functions

QActioncreateConfigureAction (QObject *parent=nullptr)
 
void initStyle ()
 

Detailed Description

Manager for Qt widget styles.

Function Documentation

◆ createConfigureAction()

QAction * KStyleManager::createConfigureAction ( QObject * parent = nullptr)

Creates an action to configure the current used style.

If the application is running using the KDE platform theme, this will just return a disabled and hidden action, else it will provide an action to show a menu to select the style to use for this applications.

Since
6.3

Definition at line 42 of file kstylemanager.cpp.

◆ initStyle()

void KStyleManager::initStyle ( )

Enforces the style configured by the user with fallback to the Breeze style.

(following the settings in the application configuration with fallback to kdeglobals)

Must be called after one has constructed the QApplication.

If the application is already using the KDE platform theme, the style will not be touched and the platform theme will ensure proper styling.

Since
6.3

Definition at line 23 of file kstylemanager.cpp.

This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:00:18 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.