QQC2-Desktop-Style
QQC2-Desktop-Style
Introduction
QQC2-Desktop-Style is a style for Qt Quick Controls 2 (QQC2) which uses QStyle
to paint the controls in order to give them native look and feel.
This framework has no public API, applications should not (and can not) use it directly. Instead, developers should add this framework as a dependency of their desktop apps.
Style name is "org.kde.desktop"
. It can be enabled like any other QQC2 style, e.g.:
- via environment variable
QT_QUICK_CONTROLS_STYLE=org.kde.desktop
from the C++ code:
#include <QQuickStyle>int main(int argc, char *argv[]){QGuiApplication app(argc, argv);QQuickStyle::setStyle("org.kde.desktop");QQmlApplicationEngine engine;// ...}void setStyle(const QString &style)
- Maintainer(s)
- Marco Martin <notma.nosp@m.rt@g.nosp@m.mail..nosp@m.com>
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:11:40 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:11:40 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.