• PySide 模块
  • PySide.QtCore
  • 内容表

    上一话题

    QEventTransition

    下一话题

    QState

    QAbstractState

    继承者: QState , QStateMachine , QHistoryState , QFinalState

    注意

    该类在 Qt4.6 引入

    概要

    函数

    虚函数

    信号

    详细描述

    PySide.QtCore.QAbstractState class is the base class of states of a PySide.QtCore.QStateMachine .

    PySide.QtCore.QAbstractState class is the abstract base class of states that are part of a PySide.QtCore.QStateMachine . It defines the interface that all state objects have in common. PySide.QtCore.QAbstractState is part of 状态机框架 .

    PySide.QtCore.QAbstractState.entered() signal is emitted when the state has been entered. The PySide.QtCore.QAbstractState.exited() signal is emitted when the state has been exited.

    PySide.QtCore.QAbstractState.parentState() function returns the state's parent state. The PySide.QtCore.QAbstractState.machine() function returns the state machine that the state is part of.

    子类化

    PySide.QtCore.QAbstractState.onEntry() function is called when the state is entered; reimplement this function to perform custom processing when the state is entered.

    PySide.QtCore.QAbstractState.onExit() function is called when the state is exited; reimplement this function to perform custom processing when the state is exited.

    class PySide.QtCore. QAbstractState ( [ parent=None ] )
    参数: parent PySide.QtCore.QState

    Constructs a new state with the given parent 状态。

    PySide.QtCore.QAbstractState. entered ( )
    PySide.QtCore.QAbstractState. exited ( )
    PySide.QtCore.QAbstractState. machine ( )
    返回类型: PySide.QtCore.QStateMachine

    Returns the state machine that this state is part of, or 0 if the state is not part of a state machine.

    PySide.QtCore.QAbstractState. onEntry ( event )
    参数: event PySide.QtCore.QEvent

    This function is called when the state is entered. The given event is what caused the state to be entered. Reimplement this function to perform custom processing when the state is entered.

    PySide.QtCore.QAbstractState. onExit ( event )
    参数: event PySide.QtCore.QEvent

    This function is called when the state is exited. The given event is what caused the state to be exited. Reimplement this function to perform custom processing when the state is exited.

    PySide.QtCore.QAbstractState. parentState ( )
    返回类型: PySide.QtCore.QState

    Returns this state's parent state, or 0 if the state has no parent state.