Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qquickgroupbox_p.h
Go to the documentation of this file.
1// Copyright (C) 2017 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
4#ifndef QQUICKGROUPBOX_P_H
5#define QQUICKGROUPBOX_P_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include <QtQuickTemplates2/private/qquickframe_p.h>
19
21
23
24class Q_QUICKTEMPLATES2_EXPORT QQuickGroupBox : public QQuickFrame
25{
27 Q_PROPERTY(QString title READ title WRITE setTitle NOTIFY titleChanged FINAL)
28 Q_PROPERTY(QQuickItem *label READ label WRITE setLabel NOTIFY labelChanged FINAL)
29 // 2.5 (Qt 5.12)
30 Q_PROPERTY(qreal implicitLabelWidth READ implicitLabelWidth NOTIFY implicitLabelWidthChanged FINAL REVISION(2, 5))
31 Q_PROPERTY(qreal implicitLabelHeight READ implicitLabelHeight NOTIFY implicitLabelHeightChanged FINAL REVISION(2, 5))
32 Q_CLASSINFO("DeferredPropertyNames", "background,contentItem,label")
33 QML_NAMED_ELEMENT(GroupBox)
35
36public:
37 explicit QQuickGroupBox(QQuickItem *parent = nullptr);
39
40 QString title() const;
41 void setTitle(const QString &title);
42
43 QQuickItem *label() const;
44 void setLabel(QQuickItem *label);
45
46 // 2.5 (Qt 5.12)
47 qreal implicitLabelWidth() const;
48 qreal implicitLabelHeight() const;
49
51 void titleChanged();
52 void labelChanged();
53 // 2.5 (Qt 5.12)
54 Q_REVISION(2, 5) void implicitLabelWidthChanged();
55 Q_REVISION(2, 5) void implicitLabelHeightChanged();
56
57protected:
58 void componentComplete() override;
59
60 QFont defaultFont() const override;
61
62#if QT_CONFIG(accessibility)
63 QAccessible::Role accessibleRole() const override;
64 void accessibilityActiveChanged(bool active) override;
65#endif
66
67private:
68 Q_DISABLE_COPY(QQuickGroupBox)
69 Q_DECLARE_PRIVATE(QQuickGroupBox)
70};
71
73
74#endif // QQUICKGROUPBOX_P_H
\reentrant
Definition qfont.h:22
Visual frame and title for a logical group of controls.
The QQuickItem class provides the most basic of all visual items in \l {Qt Quick}.
Definition qquickitem.h:63
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
Combined button and popup list for selecting options.
GLuint GLsizei const GLchar * label
[43]
#define QML_NAMED_ELEMENT(NAME)
#define QML_ADDED_IN_VERSION(MAJOR, MINOR)
#define Q_PROPERTY(...)
#define Q_OBJECT
#define Q_REVISION(...)
#define Q_CLASSINFO(name, value)
#define Q_SIGNALS
double qreal
Definition qtypes.h:187
#define explicit
QString title
[35]
g setTitle("&User information")
[0]