-
首页
-
PyQt 4.11.4
-
所有类
-
模块
QMouseEventTransition Class Reference
[
QtGui
module]
The QMouseEventTransition class provides a transition for mouse
事件。
更多...
继承
QEventTransition
.
方法
-
__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
)
详细描述
The QMouseEventTransition class provides a transition for mouse
事件。
QMouseEventTransition is part of
状态机框架
.
方法文档编制
QMouseEventTransition.__init__ (
self
,
QState
sourceState
= None)
sourceState
argument, if not None, causes
self
to be owned by Qt instead of PyQt.
Constructs a new mouse event transition with the given
sourceState
.
QMouseEventTransition.__init__ (
self
,
QObject
object
,
QEvent.Type
type
,
Qt.MouseButton
button
,
QState
sourceState
= None)
sourceState
argument, if not None, causes
self
to be owned by Qt instead of PyQt.
Constructs a new mouse event transition for events of the given
type
为给定
object
,采用给定
button
and
sourceState
.
Qt.MouseButton
QMouseEventTransition.button (
self
)
bool QMouseEventTransition.eventTest (
self
,
QEvent
event
)
重实现自
QAbstractTransition.eventTest
().
QPainterPath
QMouseEventTransition.hitTestPath (
self
)
Returns the hit test path for this mouse event transition.
另请参阅
setHitTestPath
().
Qt.KeyboardModifiers
QMouseEventTransition.modifierMask (
self
)
QMouseEventTransition.onTransition (
self
,
QEvent
event
)
重实现自
QAbstractTransition.onTransition
().
QMouseEventTransition.setButton (
self
,
Qt.MouseButton
button
)
QMouseEventTransition.setHitTestPath (
self
,
QPainterPath
path
)
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
路径。
另请参阅
hitTestPath
() 和
QPainterPath.contains
().
QMouseEventTransition.setModifierMask (
self
,
Qt.KeyboardModifiers
modifiers
)
-
首页
-
PyQt 4.11.4
-
文档编制