26class Q_QUICKTEMPLATES2_EXPORT
QQuickPane :
public QQuickControl
29 Q_PROPERTY(qreal contentWidth READ contentWidth WRITE setContentWidth RESET resetContentWidth NOTIFY contentWidthChanged FINAL)
30 Q_PROPERTY(qreal contentHeight READ contentHeight WRITE setContentHeight RESET resetContentHeight NOTIFY contentHeightChanged FINAL)
31 Q_PRIVATE_PROPERTY(QQuickPane::d_func(), QQmlListProperty<QObject> contentData READ contentData FINAL)
32 Q_PRIVATE_PROPERTY(QQuickPane::d_func(), QQmlListProperty<QQuickItem> contentChildren READ contentChildren NOTIFY contentChildrenChanged FINAL)
33 Q_CLASSINFO(
"DefaultProperty",
"contentData")
34 QML_NAMED_ELEMENT(Pane)
35 QML_ADDED_IN_VERSION(2, 0)
38 explicit QQuickPane(QQuickItem *parent =
nullptr);
41 qreal contentWidth()
const;
42 void setContentWidth(qreal width);
43 void resetContentWidth();
45 qreal contentHeight()
const;
46 void setContentHeight(qreal height);
47 void resetContentHeight();
50 void contentWidthChanged();
51 void contentHeightChanged();
52 void contentChildrenChanged();
55 QQuickPane(QQuickPanePrivate &dd, QQuickItem *parent);
57 void componentComplete() override;
59 void contentItemChange(QQuickItem *newItem, QQuickItem *oldItem) override;
60 virtual void contentSizeChange(
const QSizeF &newSize,
const QSizeF &oldSize);
62#if QT_CONFIG(accessibility)
63 QAccessible::Role accessibleRole()
const override;
67 Q_DISABLE_COPY(QQuickPane)
68 Q_DECLARE_PRIVATE(QQuickPane)