QMouseEventTransition Class Reference
[QtGui module]
该QMouseEventTransition类提供了鼠标事件的转变。More...
继承QEventTransition。
Methods
-
__init__ (self, QState sourceState = None)
-
__init__ (self, QObject object, QEvent.Type type, Qt.MouseButton button, QState sourceState = None)
-
Qt.MouseButton button (self)
-
bool eventTest (self, QEvent event)
-
QPainterPath hitTestPath (self)
-
Qt.KeyboardModifiers modifierMask (self)
-
onTransition (self, QEvent event)
-
setButton (self, Qt.MouseButton button)
-
setHitTestPath (self, QPainterPath path)
-
setModifierMask (self, Qt.KeyboardModifiers modifiers)
Detailed Description
该QMouseEventTransition类提供了鼠标事件的转变。
QMouseEventTransition是一部分The State Machine Framework。
Method Documentation
QMouseEventTransition.__init__ (self, QState sourceState = None)
该sourceState的说法,如果不是没有,原因self通过Qt的,而不是PyQt的拥有。
构造具有给定一个新的鼠标事件转变sourceState。
QMouseEventTransition.__init__ (self, QObject object, QEvent.Type type, Qt.MouseButton button, QState sourceState = None)
该sourceState的说法,如果不是没有,原因self通过Qt的,而不是PyQt的拥有。
构造对给定事件的一个新的鼠标事件转变type对于给定的object用给定的button和sourceState。
Qt.MouseButton QMouseEventTransition.button (self)
bool QMouseEventTransition.eventTest (self, QEvent event)
从重新实现QAbstractTransition.eventTest( ) 。
QPainterPath QMouseEventTransition.hitTestPath (self)
返回此鼠标事件过渡点击测试路径。
See also setHitTestPath( ) 。
Qt.KeyboardModifiers QMouseEventTransition.modifierMask (self)
QMouseEventTransition.onTransition (self, QEvent event)
从重新实现QAbstractTransition.onTransition( ) 。
QMouseEventTransition.setButton (self, Qt.MouseButton button)
QMouseEventTransition.setHitTestPath (self, QPainterPath path)
设置命中测试路径为这个鼠标事件过渡到path。如果一个有效的路径已被设定,过渡只会触发如果鼠标事件位置(QMouseEvent.pos())是在路径内。
See also hitTestPath()和QPainterPath.contains( ) 。
QMouseEventTransition.setModifierMask (self, Qt.KeyboardModifiers modifiers)