注意
该类在 Qt4.6 引入
PySide.QtGui.QMouseEventTransition class provides a transition for mouse events.
PySide.QtGui.QMouseEventTransition is part of 状态机框架 .
另请参阅
QState.addTransition()
| 参数: |
|
|---|
Constructs a new mouse event transition with the given sourceState .
| 返回类型: | PySide.QtCore.Qt.MouseButton |
|---|
This property holds the button that this mouse event transition is associated with.
| 返回类型: | PySide.QtGui.QPainterPath |
|---|
Returns the hit test path for this mouse event transition.
| 返回类型: | PySide.QtCore.Qt.KeyboardModifiers |
|---|
This property holds the keyboard modifier mask that this mouse event transition checks for.
| 参数: | button – PySide.QtCore.Qt.MouseButton |
|---|
This property holds the button that this mouse event transition is associated with.
| 参数: | path – PySide.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 ( QMouseEvent.pos() ) is inside the path.
| 参数: | modifiers – PySide.QtCore.Qt.KeyboardModifiers |
|---|
This property holds the keyboard modifier mask that this mouse event transition checks for.