47 #include <QtCore/qbasictimer.h> 48 #include <QtCore/qobject.h> 63 explicit QTimer(QObject *parent = 0);
65 QT3_SUPPORT_CONSTRUCTOR
QTimer(QObject *parent,
const char *
name);
69 inline bool isActive()
const {
return id >= 0; }
72 void setInterval(
int msec);
75 inline void setSingleShot(
bool singleShot);
78 static void singleShot(
int msec, QObject *receiver,
const char *member);
87 inline QT_MOC_COMPAT void changeInterval(
int msec) { start(msec); }
100 inline
int startTimer(
int){
return -1;}
114 #endif // QT_NO_QOBJECT
void setSingleShot(bool singleShot)
#define QT_END_NAMESPACE
This macro expands to.
bool isSingleShot() const
#define Q_DISABLE_COPY(Class)
Disables the use of copy constructors and assignment operators for the given Class.
The QObject class is the base class of all Qt objects.
#define QT_BEGIN_NAMESPACE
This macro expands to.
int timerId() const
Returns the ID of the timer if the timer is running; otherwise returns -1.
int interval
the timeout interval in milliseconds
bool isActive() const
Returns true if the timer is running (pending); otherwise returns false.
bool active
This boolean property is true if the timer is running; otherwise false.
The QTimerEvent class contains parameters that describe a timer event.
bool singleShot
This static function calls a slot after a given time interval.
The QTimer class provides repetitive and single-shot timers.