Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
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
// Qt-Security score:significant reason:default
4
5
#
ifndef
QOBJECTCLEANUPHANDLER_H
6
#
define
QOBJECTCLEANUPHANDLER_H
7
8
#
include
<
QtCore
/
qobject
.
h
>
9
10
QT_BEGIN_NAMESPACE
11
12
class
Q_CORE_EXPORT
QObjectCleanupHandler
:
public
QObject
13
{
14
Q_OBJECT
15
16
public
:
17
QObjectCleanupHandler();
18
~QObjectCleanupHandler();
19
20
QObject *add(QObject *object);
21
void
remove(QObject *object);
22
bool
isEmpty()
const
;
23
void
clear();
24
25
private
:
26
// ### move into d pointer
27
QObjectList cleanupObjects;
28
29
private
Q_SLOTS:
30
void
objectDestroyed(QObject *);
31
};
32
33
QT_END_NAMESPACE
34
35
#
endif
// QOBJECTCLEANUPHANDLER_H
QObjectCleanupHandler
\inmodule QtCore
Definition
qobjectcleanuphandler.h:13
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qrandomaccessasyncfile_darwin.mm:17
qtbase
src
corelib
kernel
qobjectcleanuphandler.h
Generated on
for Qt by
1.16.1