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
qhooks.cpp
Go to the documentation of this file.
1// Copyright (C) 2014 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com, author Volker Krause <volker.krause@kdab.com>
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#include "qhooks_p.h"
5
7
8// Only add to the end, and bump version if you do.
9quintptr Q_CORE_EXPORT qtHookData[] = {
10 3, // hook data version
11 QHooks::LastHookIndex, // size of qtHookData
13
14 // AddQObject, void(*)(QObject*), called for every constructed QObject
15 // Note: this is called from the QObject constructor, ie. the sub-class
16 // constructors haven't run yet.
17 0,
18
19 // RemoveQObject, void(*)(QObject*), called for every destructed QObject
20 // Note: this is called from the QObject destructor, ie. the object
21 // you get as an argument is already largely invalid.
22 0,
23
24 // Startup, void(*)(), called once QCoreApplication is operational
25 0,
26
27 // TypeInformationVersion, an integral value, bumped whenever private
28 // object sizes or member offsets that are used in Qt Creator's
29 // data structure "pretty printing" change.
30 //
31 // The required sizes and offsets are tested in tests/auto/other/toolsupport.
32 // When this fails and the change was intentional, adjust the test and
33 // adjust this value here.
34 22,
35};
36
37static_assert(QHooks::LastHookIndex == sizeof(qtHookData) / sizeof(qtHookData[0]));
38
40
@ LastHookIndex
Definition qhooks_p.h:35
Combined button and popup list for selecting options.
QT_BEGIN_NAMESPACE quintptr Q_CORE_EXPORT qtHookData[]
Definition qhooks.cpp:9
#define QT_VERSION
size_t quintptr
Definition qtypes.h:167