32 Q_PROPERTY(Qt::Orientation orientation READ orientation WRITE setOrientation NOTIFY orientationChanged)
33 Q_PROPERTY(
bool invertible READ isInvertible WRITE setInvertible NOTIFY invertibleChanged)
34 Q_PROPERTY(qreal activeTimeout READ activeTimeout WRITE setActiveTimeout NOTIFY activeTimeoutChanged)
35 Q_PROPERTY(qreal rotation READ rotation WRITE setRotation NOTIFY rotationChanged)
36 Q_PROPERTY(qreal rotationScale READ rotationScale WRITE setRotationScale NOTIFY rotationScaleChanged)
37 Q_PROPERTY(QString property READ property WRITE setProperty NOTIFY propertyChanged)
38 Q_PROPERTY(qreal targetScaleMultiplier READ targetScaleMultiplier WRITE setTargetScaleMultiplier NOTIFY targetScaleMultiplierChanged)
39 Q_PROPERTY(
bool targetTransformAroundCursor READ isTargetTransformAroundCursor WRITE setTargetTransformAroundCursor NOTIFY targetTransformAroundCursorChanged)
40 Q_PROPERTY(
bool blocking READ isBlocking WRITE setBlocking NOTIFY blockingChanged REVISION(6, 3))
42 QML_NAMED_ELEMENT(WheelHandler)
43 QML_ADDED_IN_VERSION(2, 14)
46 explicit QQuickWheelHandler(QQuickItem *parent =
nullptr);
48 Qt::Orientation orientation()
const;
49 void setOrientation(Qt::Orientation orientation);
51 bool isInvertible()
const;
52 void setInvertible(
bool invertible);
54 qreal activeTimeout()
const;
55 void setActiveTimeout(qreal timeout);
57 qreal rotation()
const;
58 void setRotation(qreal rotation);
60 qreal rotationScale()
const;
61 void setRotationScale(qreal rotationScale);
63 QString property()
const;
64 void setProperty(
const QString &name);
66 qreal targetScaleMultiplier()
const;
67 void setTargetScaleMultiplier(qreal targetScaleMultiplier);
69 bool isTargetTransformAroundCursor()
const;
70 void setTargetTransformAroundCursor(
bool ttac);
72 bool isBlocking()
const;
73 void setBlocking(
bool blocking);
76 void wheel(QQuickWheelEvent *event);
78 void orientationChanged();
79 void invertibleChanged();
80 void activeTimeoutChanged();
81 void rotationChanged();
82 void rotationScaleChanged();
83 void propertyChanged();
84 void targetScaleMultiplierChanged();
85 void targetTransformAroundCursorChanged();
86 Q_REVISION(6, 3)
void blockingChanged();
89 bool wantsPointerEvent(QPointerEvent *event) override;
90 void handleEventPoint(QPointerEvent *event, QEventPoint &point) override;
91 void onTargetChanged(QQuickItem *oldTarget) override;
92 void onActiveChanged() override;
93 void timerEvent(QTimerEvent *event) override;
95 Q_DECLARE_PRIVATE(QQuickWheelHandler)