QMouseEventTransition¶
The
QMouseEventTransition
class provides a transition for mouse events. More…
New in version 4.6.
Synopsis¶
Functions¶
def
button
()def
hitTestPath
()def
modifierMask
()def
setButton
(button)def
setHitTestPath
(path)def
setModifierMask
(modifiers)
Detailed Description¶
QMouseEventTransition
is part of The State Machine Framework .See also
addTransition()
- class PySide2.QtWidgets.QMouseEventTransition(object, type, button[, sourceState=None])¶
PySide2.QtWidgets.QMouseEventTransition([sourceState=None])
- param type:
- param sourceState:
- param button:
- param object:
Constructs a new mouse event transition for events of the given
type
for the givenobject
, with the givenbutton
andsourceState
.Constructs a new mouse event transition with the given
sourceState
.
- PySide2.QtWidgets.QMouseEventTransition.button()¶
- Return type:
This property holds the button that this mouse event transition is associated with.
- PySide2.QtWidgets.QMouseEventTransition.hitTestPath()¶
- Return type:
Returns the hit test path for this mouse event transition.
See also
- PySide2.QtWidgets.QMouseEventTransition.modifierMask()¶
- Return type:
KeyboardModifiers
This property holds the keyboard modifier mask that this mouse event transition checks for.
- PySide2.QtWidgets.QMouseEventTransition.setButton(button)¶
- Parameters:
button –
MouseButton
This property holds the button that this mouse event transition is associated with.
- PySide2.QtWidgets.QMouseEventTransition.setHitTestPath(path)¶
- Parameters:
path –
PySide2.QtGui.QPainterPath
Sets the hit test path for this mouse event transition to
path
. If a valid path has been set, the transition will only trigger if the mouse event position (pos()
) is inside the path.See also
hitTestPath()
contains()
- PySide2.QtWidgets.QMouseEventTransition.setModifierMask(modifiers)¶
- Parameters:
modifiers –
KeyboardModifiers
This property holds the keyboard modifier mask that this mouse event transition checks for.
© 2022 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.