QTimer Class Reference

#include <qtimer.h>

Class Description

Definition at line 56 of file qtimer.h.

+ Inheritance diagram for QTimer:

Public Slots

void start (int msec)
 
void start ()
 
void stop ()
 
- Public Slots inherited from QObject
void deleteLater ()
 

Signals

void timeout ()
 
- Signals inherited from QObject
void destroyed (QObject *=0)
 

Public Member Functions

 QTimer (QObject *parent=0)
 
 ~QTimer ()
 
bool isActive () const
 
int timerId () const
 
void setInterval (int msec)
 
int interval () const
 
void setSingleShot (bool singleShot)
 
bool isSingleShot () const
 
- Public Member Functions inherited from QObject
Q_INVOKABLE QObject (QObject *parent=0)
 
virtual ~QObject ()
 
virtual bool event (QEvent *)
 
virtual bool eventFilter (QObject *, QEvent *)
 
QString objectName () const
 
void setObjectName (const QString &name)
 
bool isWidgetType () const
 
bool signalsBlocked () const
 
bool blockSignals (bool b)
 
QThreadthread () const
 
void moveToThread (QThread *thread)
 
int startTimer (int interval)
 
void killTimer (int id)
 
template<typename T >
findChild (const QString &aName=QString()) const
 
template<typename T >
QList< T > findChildren (const QString &aName=QString()) const
 
template<typename T >
QList< T > findChildren (const QRegExp &re) const
 
const QObjectListchildren () const
 
void setParent (QObject *)
 
void installEventFilter (QObject *)
 
void removeEventFilter (QObject *)
 
bool connect (const QObject *sender, const char *signal, const char *member, Qt::ConnectionType type=Qt::AutoConnection) const
 
bool disconnect (const char *signal=0, const QObject *receiver=0, const char *member=0)
 
bool disconnect (const QObject *receiver, const char *member=0)
 
void dumpObjectTree ()
 
void dumpObjectInfo ()
 
bool setProperty (const char *name, const QVariant &value)
 
QVariant property (const char *name) const
 
QList< QByteArraydynamicPropertyNames () const
 
void setUserData (uint id, QObjectUserData *data)
 
QObjectUserDatauserData (uint id) const
 
QObjectparent () const
 
bool inherits (const char *classname) const
 

Static Public Member Functions

static void singleShot (int msec, QObject *receiver, const char *member)
 
- Static Public Member Functions inherited from QObject
static bool connect (const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection)
 
static bool connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type=Qt::AutoConnection)
 
static bool disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *member)
 
static bool disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &member)
 
static uint registerUserData ()
 

Protected Member Functions

void timerEvent (QTimerEvent *)
 
- Protected Member Functions inherited from QObject
QObjectsender () const
 
int senderSignalIndex () const
 
int receivers (const char *signal) const
 
virtual void childEvent (QChildEvent *)
 
virtual void customEvent (QEvent *)
 
virtual void connectNotify (const char *signal)
 
virtual void disconnectNotify (const char *signal)
 
 QObject (QObjectPrivate &dd, QObject *parent=0)
 

Properties

bool singleShot
 
int interval
 
bool active
 
- Properties inherited from QObject
QString objectName
 

Additional Inherited Members

- Protected Attributes inherited from QObject
QScopedPointer< QObjectDatad_ptr
 
- Static Protected Attributes inherited from QObject
static const QMetaObject staticQtMetaObject
 

Constructor & Destructor Documentation

QTimer ( QObject parent = 0)
explicit
~QTimer ( )

Member Function Documentation

bool isActive ( ) const
inline

Definition at line 69 of file qtimer.h.

69 { return id >= 0; }
int timerId ( ) const
inline

Definition at line 70 of file qtimer.h.

70 { return id; }
GLuint id
Definition: GLee.h:1552
void setInterval ( int  msec)
int interval ( ) const
inline

Definition at line 73 of file qtimer.h.

73 { return inter; }
void setSingleShot ( bool  singleShot)
inline

Definition at line 108 of file qtimer.h.

108 { single = asingleShot; }
bool isSingleShot ( ) const
inline

Definition at line 76 of file qtimer.h.

76 { return single; }
static void singleShot ( int  msec,
QObject receiver,
const char *  member 
)
static
void start ( int  msec)
slot
void start ( )
slot
void stop ( )
slot
void timeout ( )
signal
void timerEvent ( QTimerEvent )
protectedvirtual

Reimplemented from QObject.

Property Documentation

bool singleShot
readwrite

Definition at line 59 of file qtimer.h.

int interval
readwrite

Definition at line 60 of file qtimer.h.

bool active
read

Definition at line 61 of file qtimer.h.


The documentation for this class was generated from the following file: