Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qquickpage_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 QQUICKPAGE_P_H
5#define QQUICKPAGE_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/qquickpane_p.h>
19#include <QtQml/qqmllist.h>
20
22
24
25class Q_QUICKTEMPLATES2_PRIVATE_EXPORT QQuickPage : public QQuickPane
26{
28 Q_PROPERTY(QString title READ title WRITE setTitle NOTIFY titleChanged FINAL)
29 Q_PROPERTY(QQuickItem *header READ header WRITE setHeader NOTIFY headerChanged FINAL)
30 Q_PROPERTY(QQuickItem *footer READ footer WRITE setFooter NOTIFY footerChanged FINAL)
31 // 2.5 (Qt 5.12)
32 Q_PROPERTY(qreal implicitHeaderWidth READ implicitHeaderWidth NOTIFY implicitHeaderWidthChanged FINAL REVISION(2, 5))
33 Q_PROPERTY(qreal implicitHeaderHeight READ implicitHeaderHeight NOTIFY implicitHeaderHeightChanged FINAL REVISION(2, 5))
34 Q_PROPERTY(qreal implicitFooterWidth READ implicitFooterWidth NOTIFY implicitFooterWidthChanged FINAL REVISION(2, 5))
35 Q_PROPERTY(qreal implicitFooterHeight READ implicitFooterHeight NOTIFY implicitFooterHeightChanged FINAL REVISION(2, 5))
38
39public:
40 explicit QQuickPage(QQuickItem *parent = nullptr);
42
43 QString title() const;
44 void setTitle(const QString &title);
45
46 QQuickItem *header() const;
48
49 QQuickItem *footer() const;
50 void setFooter(QQuickItem *footer);
51
52 // 2.5 (Qt 5.12)
53 qreal implicitHeaderWidth() const;
54 qreal implicitHeaderHeight() const;
55
56 qreal implicitFooterWidth() const;
57 qreal implicitFooterHeight() const;
58
63 // 2.5 (Qt 5.12)
68
69protected:
71
72 void componentComplete() override;
73
74 void spacingChange(qreal newSpacing, qreal oldSpacing) override;
75
76#if QT_CONFIG(accessibility)
77 QAccessible::Role accessibleRole() const override;
78 void accessibilityActiveChanged(bool active) override;
79#endif
80
81private:
82 Q_DISABLE_COPY(QQuickPage)
83 Q_DECLARE_PRIVATE(QQuickPage)
84};
85
87
89
90#endif // QQUICKPAGE_P_H
virtual void spacingChange(qreal newSpacing, qreal oldSpacing)
The QQuickItem class provides the most basic of all visual items in \l {Qt Quick}.
Definition qquickitem.h:64
void headerChanged()
void implicitHeaderHeightChanged()
void implicitHeaderWidthChanged()
void implicitFooterWidthChanged()
void titleChanged()
void implicitFooterHeightChanged()
void footerChanged()
void componentComplete() override
Invoked after the root component that caused this instantiation has completed construction.
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:127
Combined button and popup list for selecting options.
static QString header(const QString &name)
#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_SIGNALS
double qreal
Definition qtypes.h:92
QString title
[35]
g setTitle("&User information")
[0]
textPart setHeader(QNetworkRequest::ContentDispositionHeader, QVariant("form-data; name=\"text\""))
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent