Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qquickpane_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 QQUICKPANE_P_H
5#define QQUICKPANE_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/qquickcontrol_p.h>
19#include <QtQml/qqmllist.h>
20
22
24
25class Q_QUICKTEMPLATES2_PRIVATE_EXPORT QQuickPane : public QQuickControl
26{
28 Q_PROPERTY(qreal contentWidth READ contentWidth WRITE setContentWidth RESET resetContentWidth NOTIFY contentWidthChanged FINAL)
29 Q_PROPERTY(qreal contentHeight READ contentHeight WRITE setContentHeight RESET resetContentHeight NOTIFY contentHeightChanged FINAL)
30 Q_PRIVATE_PROPERTY(QQuickPane::d_func(), QQmlListProperty<QObject> contentData READ contentData FINAL)
31 Q_PRIVATE_PROPERTY(QQuickPane::d_func(), QQmlListProperty<QQuickItem> contentChildren READ contentChildren NOTIFY contentChildrenChanged FINAL)
32 Q_CLASSINFO("DefaultProperty", "contentData")
35
36public:
37 explicit QQuickPane(QQuickItem *parent = nullptr);
39
40 qreal contentWidth() const;
41 void setContentWidth(qreal width);
42 void resetContentWidth();
43
44 qreal contentHeight() const;
45 void setContentHeight(qreal height);
46 void resetContentHeight();
47
52
53protected:
55
56 void componentComplete() override;
57
58 void contentItemChange(QQuickItem *newItem, QQuickItem *oldItem) override;
59 virtual void contentSizeChange(const QSizeF &newSize, const QSizeF &oldSize);
60
61#if QT_CONFIG(accessibility)
62 QAccessible::Role accessibleRole() const override;
63#endif
64
65private:
66 Q_DISABLE_COPY(QQuickPane)
67 Q_DECLARE_PRIVATE(QQuickPane)
68};
69
71
73
74#endif // QQUICKPANE_P_H
The QQmlListProperty class allows applications to expose list-like properties of QObject-derived clas...
Definition qqmllist.h:24
virtual void contentItemChange(QQuickItem *newItem, QQuickItem *oldItem)
void componentComplete() override
Invoked after the root component that caused this instantiation has completed construction.
The QQuickItem class provides the most basic of all visual items in \l {Qt Quick}.
Definition qquickitem.h:64
void contentWidthChanged()
void contentHeightChanged()
void contentChildrenChanged()
\inmodule QtCore
Definition qsize.h:207
Combined button and popup list for selecting options.
GLint GLsizei GLsizei height
GLint GLsizei width
#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_CLASSINFO(name, value)
#define Q_SIGNALS
#define Q_PRIVATE_PROPERTY(d, text)
double qreal
Definition qtypes.h:92
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent