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>.
Loading...
Searching...
No Matches
qobjectcleanuphandler.h
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QOBJECTCLEANUPHANDLER_H
5#define QOBJECTCLEANUPHANDLER_H
6
7#include <QtCore/qobject.h>
8
10
11class Q_CORE_EXPORT QObjectCleanupHandler : public QObject
12{
14
15public:
18
19 QObject *add(QObject *object);
20 void remove(QObject *object);
21 bool isEmpty() const;
22 void clear();
23
24private:
25 // ### move into d pointer
26 QObjectList cleanupObjects;
27
28private Q_SLOTS:
29 void objectDestroyed(QObject *);
30};
31
33
34#endif // QOBJECTCLEANUPHANDLER_H
\inmodule QtCore
Definition qobject.h:103
b clear()
Combined button and popup list for selecting options.
static void add(QPainterPath &path, const QWingedEdge &list, int edge, QPathEdge::Traversal traversal)
#define Q_OBJECT
#define Q_SLOTS
settings remove("monkey")