Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
|
\inmodule QtCore More...
#include <qcoreevent.h>
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 QChronoTimer 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 365 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.
|
inline |
Returns the unique timer identifier, which is the same identifier as returned from QObject::startTimer().
Definition at line 370 of file qcoreevent.h.
Referenced by QCoreApplication::compressEvent(), QGraphicsSceneBspTreeIndex::event(), QToolBar::event(), QPollingFileSystemWatcherEngine::timerEvent(), QChronoTimer::timerEvent(), QTimer::timerEvent(), QAbstractSlider::timerEvent(), QKeySequenceEdit::timerEvent(), QMenu::timerEvent(), QMenuBar::timerEvent(), QToolButton::timerEvent(), QQuickView::timerEvent(), QQuickWidget::timerEvent(), QDefaultAnimationDriver::timerEvent(), QDBusConnectionPrivate::timerEvent(), QTextDocumentLayout::timerEvent(), QCocoaMenu::timerEvent(), QXcbDrag::timerEvent(), QTestEventLoop::timerEvent(), QListView::timerEvent(), QTipLabel::timerEvent(), PressDelayHandler::timerEvent(), QBalloonTip::timerEvent(), QAbstractButton::timerEvent(), QtPrivate::QCalendarTextNavigator::timerEvent(), QComboBoxPrivateScroller::timerEvent(), QMainWindowLayout::timerEvent(), QPlainTextEdit::timerEvent(), QTextEdit::timerEvent(), QWidgetTextControl::timerEvent(), QQuickTextControl::timerEvent(), and QPlatformWindow::windowEvent().
|
protected |
Definition at line 373 of file qcoreevent.h.