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
QMouseEventTransition
(object, type, button[, sourceState=None])¶ QMouseEventTransition([sourceState=None])
- param type
Type
- param sourceState
QState
- param button
MouseButton
- param object
QObject
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
.
- Return type
MouseButton
Returns the button that this mouse event transition checks for.
See also
-
PySide2.QtWidgets.QMouseEventTransition.
hitTestPath
()¶ - Return type
QPainterPath
Returns the hit test path for this mouse event transition.
See also
-
PySide2.QtWidgets.QMouseEventTransition.
modifierMask
()¶ - Return type
KeyboardModifiers
Returns the keyboard modifier mask that this mouse event transition checks for.
See also
-
PySide2.QtWidgets.QMouseEventTransition.
setButton
(button)¶ - Parameters
button –
MouseButton
Sets the
button
that this mouse event transition will check for.See also
-
PySide2.QtWidgets.QMouseEventTransition.
setHitTestPath
(path)¶ - Parameters
path –
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
Sets the keyboard modifier mask that this mouse event transition will check for to
modifierMask
.See also
© 2018 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.