35 Q_PROPERTY(
bool containsMouse READ hovered NOTIFY hoveredChanged)
36 Q_PROPERTY(
bool pressed READ isPressed NOTIFY pressedChanged)
38 Q_PROPERTY(
bool scrollGestureEnabled READ isScrollGestureEnabled WRITE setScrollGestureEnabled NOTIFY scrollGestureEnabledChanged REVISION(2, 5))
39 Q_PROPERTY(
Qt::MouseButtons pressedButtons READ pressedButtons NOTIFY pressedButtonsChanged)
40 Q_PROPERTY(
Qt::MouseButtons acceptedButtons READ acceptedButtons WRITE setAcceptedButtons NOTIFY acceptedButtonsChanged)
41 Q_PROPERTY(
bool hoverEnabled READ hoverEnabled WRITE setHoverEnabled NOTIFY hoverEnabledChanged)
42#if QT_CONFIG(quick_draganddrop)
45 Q_PROPERTY(
bool preventStealing READ preventStealing WRITE setPreventStealing NOTIFY preventStealingChanged)
46 Q_PROPERTY(
bool propagateComposedEvents READ propagateComposedEvents WRITE setPropagateComposedEvents NOTIFY propagateComposedEventsChanged)
50 Q_PROPERTY(
bool containsPress READ containsPress NOTIFY containsPressChanged REVISION(2, 4))
51 Q_PROPERTY(
int pressAndHoldInterval READ pressAndHoldInterval WRITE setPressAndHoldInterval NOTIFY pressAndHoldIntervalChanged RESET resetPressAndHoldInterval REVISION(2, 9))
62 bool isEnabled() const;
63 void setEnabled(
bool);
65 bool isScrollGestureEnabled() const;
66 void setScrollGestureEnabled(
bool);
69 bool isPressed() const;
70 bool containsPress() const;
72 Qt::MouseButtons pressedButtons() const;
74 Qt::MouseButtons acceptedButtons() const;
75 void setAcceptedButtons(
Qt::MouseButtons buttons);
77 bool hoverEnabled() const;
78 void setHoverEnabled(
bool h);
80#if QT_CONFIG(quick_draganddrop)
84 bool preventStealing()
const;
85 void setPreventStealing(
bool prevent);
87 bool propagateComposedEvents()
const;
88 void setPropagateComposedEvents(
bool propagate);
95 int pressAndHoldInterval()
const;
96 void setPressAndHoldInterval(
int interval);
97 void resetPressAndHoldInterval();
104 void pressedButtonsChanged();
105 void acceptedButtonsChanged();
106 void hoverEnabledChanged();
108 void cursorShapeChanged();
121#if QT_CONFIG(wheelevent)
131 void setHovered(
bool);
139 void mouseUngrabEvent() override;
140 void touchUngrabEvent() override;
144#if QT_CONFIG(wheelevent)
145 void wheelEvent(QWheelEvent *
event)
override;
150 void geometryChange(
const QRectF &newGeometry,
const QRectF &oldGeometry)
override;
156 void handleRelease();