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
qquickmenuitemiconlabel_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 QQUICKMENUITEMICONLABEL_P_H
6#define QQUICKMENUITEMICONLABEL_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 <QtQuickControls2Impl/private/qquickiconlabel_p.h>
20
22
23class QQuickMenuItem;
24class QQuickMenuItemIconLabelPrivate;
25
26class Q_AUTOTEST_EXPORT QQuickMenuItemIconLabel : public QQuickIconLabel
27{
28 Q_OBJECT
29 Q_PROPERTY(QQuickMenuItem *menuItem READ menuItem WRITE setMenuItem NOTIFY menuItemChanged FINAL)
30 QML_NAMED_ELEMENT(MenuItemIconLabel)
31 QML_ADDED_IN_VERSION(6, 12)
32
33public:
34 explicit QQuickMenuItemIconLabel(QQuickItem *parent = nullptr);
35 ~QQuickMenuItemIconLabel();
36
37 QQuickMenuItem *menuItem() const;
38 void setMenuItem(QQuickMenuItem *menuItem);
39
40signals:
41 void menuItemChanged();
42
43protected:
44 void componentComplete() override;
45
46private:
47 Q_DISABLE_COPY(QQuickMenuItemIconLabel)
48 Q_DECLARE_PRIVATE(QQuickMenuItemIconLabel)
49};
50
51QT_END_NAMESPACE
52
53#endif // QQUICKMENUITEMICONLABEL_P_H
Combined button and popup list for selecting options.