Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qqstylekitdelegate_p.h
Go to the documentation of this file.
1// Copyright (C) 2026 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3// Qt-Security score:significant reason:default
4
5#ifndef QQSTYLEKITDELEGATE_P_H
6#define QQSTYLEKITDELEGATE_P_H
7
8//
9// W A R N I N G
10// -------------
11//
12// This file is not part of the Qt API. It exists purely as an
13// implementation detail. This header file may change from version to
14// version without notice, or even be removed.
15//
16// We mean it.
17//
18
19#include <QtQuick/private/qquickimplicitsizeitem_p.h>
20#include <QtQml/qqmlparserstatus.h>
21
22QT_BEGIN_NAMESPACE
23
24class QQStyleKitDelegateProperties;
25
27{
28 Q_OBJECT
29 Q_PROPERTY(QQStyleKitDelegateProperties *delegateProperties READ delegateProperties WRITE setDelegateProperties NOTIFY delegatePropertiesChanged REQUIRED FINAL)
31
32public:
33 explicit QQStyleKitDelegate(QQuickItem *parent = nullptr);
34
35 QQStyleKitDelegateProperties *delegateProperties() const;
36 void setDelegateProperties(QQStyleKitDelegateProperties *delegateProperties);
37
40
41private:
42 void updateImplicitSize();
43 void maybeCreateColor();
44 void maybeCreateGradient();
45 void maybeCreateImage();
46
47private:
48 QPointer<QQStyleKitDelegateProperties> m_delegateProperties;
49 QPointer<QQuickItem> m_colorOverlay;
50 QPointer<QQuickItem> m_gradientOverlay;
51 QPointer<QQuickItem> m_imageOverlay;
52};
53
54QT_END_NAMESPACE
55
56#endif // QQSTYLEKITDELEGATE_P_H
QQStyleKitDelegateProperties * delegateProperties() const
void setDelegateProperties(QQStyleKitDelegateProperties *delegateProperties)
The QQuickItem class provides the most basic of all visual items in \l {Qt Quick}.
Definition qquickitem.h:64
Combined button and popup list for selecting options.