29 Q_PROPERTY(
int count READ count WRITE setCount NOTIFY countChanged FINAL)
30 Q_PROPERTY(
int currentIndex READ currentIndex WRITE setCurrentIndex NOTIFY currentIndexChanged FINAL)
31 Q_PROPERTY(
bool interactive READ isInteractive WRITE setInteractive NOTIFY interactiveChanged FINAL)
32 Q_PROPERTY(QQmlComponent *delegate READ delegate WRITE setDelegate NOTIFY delegateChanged FINAL)
33 QML_NAMED_ELEMENT(PageIndicator)
34 QML_ADDED_IN_VERSION(2, 0)
37 explicit QQuickPageIndicator(QQuickItem *parent =
nullptr);
38 ~QQuickPageIndicator() override;
41 void setCount(
int count);
43 int currentIndex()
const;
44 void setCurrentIndex(
int index);
46 bool isInteractive()
const;
47 void setInteractive(
bool interactive);
49 QQmlComponent *delegate()
const;
50 void setDelegate(QQmlComponent *delegate);
54 void currentIndexChanged();
55 void interactiveChanged();
56 void delegateChanged();
59 void contentItemChange(QQuickItem *newItem, QQuickItem *oldItem) override;
61#if QT_CONFIG(quicktemplates2_multitouch)
62 void touchEvent(QTouchEvent *event) override;
65#if QT_CONFIG(accessibility)
66 QAccessible::Role accessibleRole()
const override;
70 Q_DISABLE_COPY(QQuickPageIndicator)
71 Q_DECLARE_PRIVATE(QQuickPageIndicator)
Indicates the currently active page.
void updatePressed(bool pressed, const QPointF &pos=QPointF())
bool handleRelease(const QPointF &point, ulong timestamp) override
bool handleMove(const QPointF &point, ulong timestamp) override
void setContextProperty(QQuickItem *item, const QString &name, const QVariant &value)
QQuickItem * itemAt(const QPointF &pos) const
void itemChildAdded(QQuickItem *, QQuickItem *child) override
void handleUngrab() override