Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
\inmodule QtCore More...
#include <qcoreevent.h>
Public Member Functions | |
QTimerEvent (int timerId) | |
Constructs a timer event object with the timer identifier set to timerId. | |
QTimerEvent (Qt::TimerId timerId) | |
int | timerId () const |
Returns the unique timer identifier, which is the same identifier as returned from QObject::startTimer(). | |
Qt::TimerId | id () const |
bool | matches (const QBasicTimer &timer) const noexcept |
Public Member Functions inherited from QEvent | |
QEvent (Type type) | |
Constructs an event object of type type. | |
virtual | ~QEvent () |
Destroys the event. | |
Type | type () const |
Returns the event type. | |
bool | spontaneous () const |
Returns true if the event originated outside the application (a system event); otherwise returns false . | |
virtual void | setAccepted (bool accepted) |
bool | isAccepted () const |
void | accept () |
Sets the accept flag of the event object, the equivalent of calling setAccepted(true). | |
void | ignore () |
Clears the accept flag parameter of the event object, the equivalent of calling setAccepted(false). | |
bool | isInputEvent () const noexcept |
bool | isPointerEvent () const noexcept |
bool | isSinglePointEvent () const noexcept |
virtual QEvent * | clone () const |
Creates and returns an identical copy of this event. | |
Protected Attributes | |
Qt::TimerId | m_id |
Protected Attributes inherited from QEvent | |
quint16 | t |
\inmodule QtCore
The QTimerEvent class contains parameters that describe a timer event.
Timer events are sent at regular intervals to objects that have started one or more timers. Each timer has a unique identifier. A timer is started with QObject::startTimer().
The QChronoTimer class provides a high-level programming interface that uses signals instead of events.
The event handler QObject::timerEvent() receives timer events.
Definition at line 366 of file qcoreevent.h.
|
explicit |
Constructs a timer event object with the timer identifier set to timerId.
Definition at line 535 of file qcoreevent.cpp.
|
explicit |
Constructs a timer event object with the timer identifier set to timerId.
Definition at line 545 of file qcoreevent.cpp.
|
inline |
Returns the Qt::TimerId of the timer associated with this event, which is the same identifier returned by QObject::startTimer() cast to Qt::TimerId.
Definition at line 374 of file qcoreevent.h.
|
inlinenoexcept |
Returns true
if this timer event and timer have the same ID, otherwise returns false
.
Definition at line 375 of file qcoreevent.h.
|
inline |
Returns the unique timer identifier, which is the same identifier as returned from QObject::startTimer().
Definition at line 373 of file qcoreevent.h.
|
protected |
Definition at line 379 of file qcoreevent.h.