PythonQt.QtCore.QBasicTimer
QBasicTimer
PythonQtInstanceWrapper object
Native bases: PythonQtInstanceWrapper
Supplemental documentation: Qt 5 reference:
Detailed Description
This is a fast, lightweight, and low-level class used by Qt internally. We recommend using the higher-level QTimer class rather than this class if you want to use timers in your applications. Note that this timer is a repeating timer that will send subsequent timer events unless the stop() function is called.
To use this class, create a QBasicTimer, and call its
start() function with a
timeout interval and with a pointer to a
QObject subclass. When the timer
times out it will send a timer event to the
QObject subclass. The timer can be
stopped at any time using
stop().
isActive() returns
true for a timer that is running; i.e. it has been started, has not reached the
timeout time, and has not been stopped. The timer's ID can be retrieved using
timerId().
Objects of this class cannot be copied, but can be moved, so you can maintain a list of basic timers by holding them in container that supports move-only types, e.g. std::vector.
The Wiggly example uses QBasicTimer to repaint a widget at regular intervals.
Source: https://doc.qt.io/archives/qt-5.15/qbasictimer.html
Complete member index
Every captured member retains its own identity. Identical captured declaration text is linked once; this does not establish native inheritance or interchangeable objects.
| Member | Kind | Signature | Summary |
|---|---|---|---|
__init__ |
function | (self, *args: Any, **kwargs: Any) -> None |
Native constructor; consult class documentation for supported overloads. (shared captured text) |
className |
function | (self, *args: Any, **kwargs: Any) -> Any |
Return the classname of the object (shared captured text) |
delete |
function | (self, *args: Any, **kwargs: Any) -> Any |
Deletes the C++ object (at your own risk, my friend!) (shared captured text) |
help |
function | (self, *args: Any, **kwargs: Any) -> Any |
Shows the help of available methods for this class (shared captured text) |
inherits |
function | (self, *args: Any, **kwargs: Any) -> Any |
Returns if the class inherits or is of given type name (shared captured text) |
isActive |
function | (self) -> bool |
X.isActive() -> bool |
start |
function | (self, msec: int, timerType: Any, obj: Any) -> None |
X.start(msec, timerType, obj) |
stop |
function | (self) -> None |
Stops the timer. |
timerId |
function | (self) -> int |
X.timerId() -> int |