#define QT_END_NAMESPACE
This macro expands to.
void remove(QObject *object)
Removes the object from this cleanup handler.
void insert(int i, const T &t)
Inserts value at index position i in the list.
bool isEmpty() const
Returns true if this cleanup handler is empty or if all objects in this cleanup handler have been des...
The QObject class is the base class of all Qt objects.
bool isEmpty() const
Returns true if the list contains no items; otherwise returns false.
#define QT_BEGIN_NAMESPACE
This macro expands to.
void destroyed(QObject *=0)
This signal is emitted immediately before the object obj is destroyed, and can not be blocked...
T takeFirst()
Removes the first item in the list and returns it.
static bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection)
Creates a connection of the given type from the signal in the sender object to the method in the rece...
QObjectCleanupHandler()
Constructs an empty QObjectCleanupHandler.
QObjectList cleanupObjects
~QObjectCleanupHandler()
Destroys the cleanup handler.
static bool disconnect(const QObject *sender, const char *signal, const QObject *receiver, const char *member)
Disconnects signal in object sender from method in object receiver.
int indexOf(const T &t, int from=0) const
Returns the index position of the first occurrence of value in the list, searching forward from index...
QObject * add(QObject *object)
Adds object to this cleanup handler and returns the pointer to the object.
void objectDestroyed(QObject *)
void clear()
Deletes all objects in this cleanup handler.
void removeAt(int i)
Removes the item at index position i.