![]()  | 
  
    Qt 6.x
    
   The Qt SDK 
   | 
 
\inmodule QtCore More...
#include <qcoreevent.h>
 Inheritance diagram for QTimerEvent:
 Collaboration diagram for QTimerEvent:Public Member Functions | |
| QTimerEvent (int timerId) | |
| Constructs a timer event object with the timer identifier set to timerId.   | |
| int | timerId () const | 
| Returns the unique timer identifier, which is the same identifier as returned from QObject::startTimer().   | |
  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 | |
| int | 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 QTimer class provides a high-level programming interface that uses signals instead of events. It also provides single-shot timers.
The event handler QObject::timerEvent() receives timer events.
Definition at line 358 of file qcoreevent.h.
      
  | 
  explicit | 
Constructs a timer event object with the timer identifier set to timerId.
Definition at line 527 of file qcoreevent.cpp.
      
  | 
  inline | 
Returns the unique timer identifier, which is the same identifier as returned from QObject::startTimer().
Definition at line 363 of file qcoreevent.h.
Referenced by QApplication::event(), QSGThreadedRenderLoop::event(), QEventDispatcherWin32::event(), QHeaderView::event(), QSGSoftwareThreadedRenderLoop::event(), QGraphicsSceneBspTreeIndex::event(), QToolBar::event(), QMacPanGestureRecognizer::recognize(), QTreeModel::timerEvent(), QXcbClipboardTransaction::timerEvent(), and QMacPanGestureRecognizer::timerEvent().
 Here is the caller graph for this function:
      
  | 
  protected | 
Definition at line 366 of file qcoreevent.h.