QScxmlEventclass is an event for a Qt SCXML state machine. 更多 …
def
clear
()
def
data
()
def
delay
()
def
errorMessage
()
def
eventType
()
def
invokeId
()
def
isErrorEvent
()
def
name
()
def
origin
()
def
originType
()
def
scxmlType
()
def
sendId
()
def
setData
(data)
def
setDelay
(delayInMiliSecs)
def
setErrorMessage
(message)
def
setEventType
(type)
def
setInvokeId
(invokeId)
def
setName
(name)
def
setOrigin
(origin)
def
setOriginType
(originType)
def
setSendId
(sendId)
SCXML events drive transitions. Most events are generated by using the
<raise>and<send>elements in the application. The state machine automatically generates some mandatory events, such as errors.解更多信息,见 SCXML Specification - 5.10.1 The Internal Structure of Events . For more information about how the Qt SCXML API differs from the specification, see SCXML 合规 .
另请参阅
QScxmlEvent
¶
QScxmlEvent(other)
- param other
Creates a new external SCXML event.
构造副本为
other
.
PySide2.QtScxml.QScxmlEvent.
EventType
¶
This enum type specifies the type of an SCXML event:
|
常量 |
描述 |
|---|---|
|
QScxmlEvent.PlatformEvent |
An event generated internally by the state machine. For example, errors. |
|
QScxmlEvent.InternalEvent |
An event generated by a
|
|
QScxmlEvent.ExternalEvent |
An event generated by a
|
PySide2.QtScxml.QScxmlEvent.
clear
(
)
¶
Clears the contents of the event.
PySide2.QtScxml.QScxmlEvent.
data
(
)
¶
object
Returns the data included by the sender.
另请参阅
PySide2.QtScxml.QScxmlEvent.
delay
(
)
¶
int
Returns the delay in milliseconds after which this event is to be delivered after processing the
<send>
元素。
另请参阅
PySide2.QtScxml.QScxmlEvent.
errorMessage
(
)
¶
unicode
If this is an error event, returns the error message. Otherwise, returns an empty
QString
.
另请参阅
PySide2.QtScxml.QScxmlEvent.
eventType
(
)
¶
Returns the type of this event.
另请参阅
setEventType()
EventType
PySide2.QtScxml.QScxmlEvent.
invokeId
(
)
¶
unicode
If this event is generated by an invoked state machine, returns the ID of the
<invoke>
element. Otherwise, returns an empty value.
另请参阅
PySide2.QtScxml.QScxmlEvent.
isErrorEvent
(
)
¶
bool
返回
true
when this is an error event,
false
否则。
PySide2.QtScxml.QScxmlEvent.
origin
(
)
¶
unicode
Returns a URI that points to the origin of an SCXML event.
另请参阅
PySide2.QtScxml.QScxmlEvent.
originType
(
)
¶
unicode
Returns the origin type of an SCXML event.
另请参阅
PySide2.QtScxml.QScxmlEvent.
scxmlType
(
)
¶
unicode
返回事件类型。
PySide2.QtScxml.QScxmlEvent.
sendId
(
)
¶
unicode
Returns the ID of the event.
另请参阅
PySide2.QtScxml.QScxmlEvent.
setData
(
data
)
¶
data – object
Sets the payload data to
data
.
另请参阅
PySide2.QtScxml.QScxmlEvent.
setDelay
(
delayInMiliSecs
)
¶
delayInMiliSecs
–
int
Sets the delay in milliseconds as the value of
delayInMiliSecs
.
另请参阅
PySide2.QtScxml.QScxmlEvent.
setErrorMessage
(
message
)
¶
message – unicode
If this is an error event, the
message
is set as the error message.
另请参阅
PySide2.QtScxml.QScxmlEvent.
setEventType
(
type
)
¶
type
–
EventType
Sets the event type to
type
.
另请参阅
eventType
EventType
PySide2.QtScxml.QScxmlEvent.
setInvokeId
(
invokeId
)
¶
invokeId – unicode
Sets the ID of an invoked state machine to
invokeid
.
另请参阅
PySide2.QtScxml.QScxmlEvent.
setName
(
name
)
¶
name – unicode
Sets the name of the event to
name
.
另请参阅
PySide2.QtScxml.QScxmlEvent.
setOrigin
(
origin
)
¶
origin – unicode
Sets the origin of an SCXML event to
origin
.
另请参阅
PySide2.QtScxml.QScxmlEvent.
setOriginType
(
originType
)
¶
originType – unicode
Sets the origin type of an SCXML event to
origintype
.
另请参阅