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");
// ...
}
Author(s):
Marco Martin <notma.nosp@m.rt@g.nosp@m.mail..nosp@m.com>
Maintainer(s):
Marco Martin <notma.nosp@m.rt@g.nosp@m.mail..nosp@m.com>
License(s):
LGPLv2
void setStyle(const QString &style)
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Fri Sep 29 2023 03:47:44 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.