WrappedEvent¶

New in version 4.6.
Synopsis¶
Functions¶
Detailed Description¶
A wrapped event is generated by a
QStateMachinein response to a Qt event. TheQEventTransitionclass provides a transition associated with a such an event.WrappedEventis part of The State Machine Framework .The
object()function returns the object that generated the event. Theevent()function returns a clone of the original event.See also
- class PySide2.QtCore.QStateMachine.WrappedEvent(object, event)¶
PySide2.QtCore.QStateMachine.WrappedEvent(WrappedEvent)
- param WrappedEvent:
- param event:
- param object:
Constructs a new
WrappedEventobject with the givenobjectandevent.The
WrappedEventobject takes ownership ofevent.
- PySide2.QtCore.QStateMachine.WrappedEvent.event()¶
- Return type:
Returns a clone of the original event.
- PySide2.QtCore.QStateMachine.WrappedEvent.object()¶
- Return type:
Returns the object that the event is associated with.
© 2022 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.