Qt 4.8
|
The QTimerEvent class contains parameters that describe a timer event. More...
#include <qcoreevent.h>
Public Functions | |
QTimerEvent (int timerId) | |
Constructs a timer event object with the timer identifier set to timerId. More... | |
int | timerId () const |
Returns the unique timer identifier, which is the same identifier as returned from QObject::startTimer(). More... | |
~QTimerEvent () | |
Public Functions inherited from QEvent | |
void | accept () |
Sets the accept flag of the event object, the equivalent of calling setAccepted(true). More... | |
void | ignore () |
Clears the accept flag parameter of the event object, the equivalent of calling setAccepted(false). More... | |
bool | isAccepted () const |
QEvent (Type type) | |
Contructs an event object of type type. More... | |
void | setAccepted (bool accepted) |
bool | spontaneous () const |
Returns true if the event originated outside the application (a system event); otherwise returns false. More... | |
Type | type () const |
Returns the event type. More... | |
virtual | ~QEvent () |
Destroys the event. More... | |
Protected Variables | |
int | id |
Protected Variables inherited from QEvent | |
QEventPrivate * | d |
ushort | t |
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 341 of file qcoreevent.h.
QTimerEvent::QTimerEvent | ( | int | timerId | ) |
Constructs a timer event object with the timer identifier set to timerId.
Definition at line 451 of file qcoreevent.cpp.
QTimerEvent::~QTimerEvent | ( | ) |
Definition at line 457 of file qcoreevent.cpp.
|
inline |
Returns the unique timer identifier, which is the same identifier as returned from QObject::startTimer().
Definition at line 346 of file qcoreevent.h.
Referenced by QWindowsVistaStyle::event(), QEventDispatcherWin32::event(), QStateMachine::event(), QHeaderView::event(), QApplication::event(), QMacPinchGestureRecognizer::reset(), QCalendarTextNavigator::timerEvent(), QTestEventLoop::timerEvent(), QMacAnimateCursor::timerEvent(), QTimer::timerEvent(), QWindowsStyle::timerEvent(), QDeclarativeView::timerEvent(), QPlastiqueStyle::timerEvent(), QTextDocumentLayout::timerEvent(), QMotifStyle::timerEvent(), QBalloonTip::timerEvent(), QToolButton::timerEvent(), QMdiSubWindow::timerEvent(), QDefaultAnimationDriver::timerEvent(), QTimeLine::timerEvent(), QMenuBar::timerEvent(), QAbstractButton::timerEvent(), QTipLabel::timerEvent(), QTreeModel::timerEvent(), QAbstractSlider::timerEvent(), QFileSystemModel::timerEvent(), QAbstractSpinBox::timerEvent(), QTableView::timerEvent(), QListView::timerEvent(), QMdiArea::timerEvent(), QCoreFuriCuri::timerEvent(), QComboBoxPrivateScroller::timerEvent(), QMainWindowLayout::timerEvent(), QMenu::timerEvent(), QScriptDebugger::timerEvent(), QDeclarativeFlickable::timerEvent(), QTreeView::timerEvent(), QUnifiedTimer::timerEvent(), QDeclarativeMouseArea::timerEvent(), QPlainTextEdit::timerEvent(), QComboBoxPrivateContainer::timerEvent(), QDBusConnectionPrivate::timerEvent(), QTextControl::timerEvent(), QTextEdit::timerEvent(), QWSServer::timerEvent(), QSocks5BindStore::timerEvent(), QAbstractItemView::timerEvent(), QLineControl::timerEvent(), and QWSSoundServerPrivate::timerEvent().
|
protected |
Definition at line 348 of file qcoreevent.h.