Skip to content

PythonQt.QtCore.QBasicTimer · declarations 001

Back to PythonQt.QtCore.QBasicTimer

isActive

isActive() -> bool

X.isActive() -> bool

Supplemental documentation: Qt 5 reference:

bool QBasicTimer::isActive() const

Returns true if the timer is running and has not been stopped; otherwise returns false.

See also start() and stop().

Upstream PySide2 reference signatures (binding differences may apply):

isActive(self) -> bool

Source: https://doc.qt.io/archives/qt-5.15/qbasictimer.html#isActive

start

start(msec: int, timerType: Any, obj: Any) -> None

X.start(msec, timerType, obj)

Supplemental documentation: Qt 5 reference:

void QBasicTimer::start(int msec, QObject *object)

Starts (or restarts) the timer with a msec milliseconds timeout. The timer will be a Qt::CoarseTimer. See Qt::TimerType for information on the different timer types.

The given object will receive timer events.

See also stop(), isActive(), QObject::timerEvent(), and Qt::CoarseTimer.

void QBasicTimer::start(int msec, Qt::TimerType timerType, QObject *obj)

This is an overloaded function.

Starts (or restarts) the timer with a msec milliseconds timeout and the given timerType. See Qt::TimerType for information on the different timer types.

obj will receive timer events.

See also stop(), isActive(), QObject::timerEvent(), and Qt::TimerType.

Upstream PySide2 reference signatures (binding differences may apply):

start(self, msec: int, obj: PySide2.QtCore.QObject) -> None
start(self, msec: int, timerType: PySide2.QtCore.Qt.TimerType, obj: PySide2.QtCore.QObject) -> None

Source: https://doc.qt.io/archives/qt-5.15/qbasictimer.html#start

stop

stop() -> None

X.stop()

Supplemental documentation: Qt 5 reference:

void QBasicTimer::stop()

Stops the timer.

See also start() and isActive().

Upstream PySide2 reference signatures (binding differences may apply):

stop(self) -> None

Source: https://doc.qt.io/archives/qt-5.15/qbasictimer.html#stop

timerId

timerId() -> int

X.timerId() -> int

Supplemental documentation: Qt 5 reference:

int QBasicTimer::timerId() const

Returns the timer's ID.

See also QTimerEvent::timerId().

Upstream PySide2 reference signatures (binding differences may apply):

timerId(self) -> int

Source: https://doc.qt.io/archives/qt-5.15/qbasictimer.html#timerId