Qt 6.x
The Qt SDK
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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_PRIVATE_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
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
75
76#endif // QQUICKGROUPBOX_P_H
\reentrant
Definition qfont.h:20
Visual frame and title for a logical group of controls.
void titleChanged()
void labelChanged()
Q_REVISION(2, 5) void implicitLabelWidthChanged()
The QQuickItem class provides the most basic of all visual items in \l {Qt Quick}.
Definition qquickitem.h:64
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:127
Combined button and popup list for selecting options.
DBusConnection const char DBusError DBusBusType DBusError return DBusConnection DBusHandleMessageFunction void DBusFreeFunction return DBusConnection return DBusConnection return const char DBusError return DBusConnection DBusMessage dbus_uint32_t return DBusConnection dbus_bool_t DBusConnection DBusAddWatchFunction DBusRemoveWatchFunction DBusWatchToggledFunction void DBusFreeFunction return DBusConnection DBusDispatchStatusFunction void DBusFreeFunction DBusTimeout return DBusTimeout return DBusWatch return DBusWatch unsigned int return DBusError const DBusError return const DBusMessage return DBusMessage return DBusMessage return DBusMessage return DBusMessage return DBusMessage return DBusMessageIter int const void return DBusMessageIter DBusMessageIter return DBusMessageIter void DBusMessageIter void int return DBusMessage DBusMessageIter return DBusMessageIter return DBusMessageIter DBusMessageIter const char const char const char const char return DBusMessage return DBusMessage const char return DBusMessage dbus_bool_t return DBusMessage dbus_uint32_t return DBusMessage void
GLuint GLsizei const GLchar * label
[43]
#define QML_DECLARE_TYPE(TYPE)
Definition qqml.h:19
#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:92
QString title
[35]
g setTitle("&User information")
[0]
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent