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
qqstylekitdelegatecontainer_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 QQSTYLEKITDELEGATECONTAINER_P_H
6#define QQSTYLEKITDELEGATECONTAINER_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/qquickitem.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 FINAL)
33
34public:
37
38 QQStyleKitDelegateProperties *delegateProperties() const;
39 void setDelegateProperties(QQStyleKitDelegateProperties *delegateProperties);
40
41 QObject *parentControl() const;
42 void setParentControl(QObject *control);
43
45
50
51protected:
53
54private:
55 void updateImplicitSize();
56 void maybeCreateDelegate();
57 void maybeCreateShadow();
58
59private:
60 QPointer<QQStyleKitDelegateProperties> m_delegateProperties;
61 QPointer<QObject> m_control;
62
63 QPointer<QQuickItem> m_delegateInstance;
64 QPointer<QQuickItem> m_shadowInstance;
65
66 QPointer<QQmlComponent> m_delegateComponent;
67 QPointer<QQmlComponent> m_shadowComponent;
68
69 static QQmlComponent *s_defaultDelegateComponent;
70 static QQmlComponent *s_defaultShadowComponent;
71};
72
73QT_END_NAMESPACE
74
75#endif // QQSTYLEKITDELEGATECONTAINER_P_H
QQStyleKitDelegateProperties * delegateProperties() const
void componentComplete() override
Invoked after the root component that caused this instantiation has completed construction.
void setDelegateProperties(QQStyleKitDelegateProperties *delegateProperties)
Combined button and popup list for selecting options.