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
qqmldebug.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 QQMLDEBUG_H
5#define QQMLDEBUG_H
6
7#include <QtQml/qtqmlglobal.h>
8#include <QtCore/qstring.h>
9#include <QtCore/qvariant.h>
10#include <QtCore/qhash.h> // QVariantHash
11
13
14#if QT_CONFIG(qml_debug)
15
17{
18 enum StartMode {
21 };
22
23 static void enableDebugging(bool printWarning);
24
25#if QT_DEPRECATED_SINCE(6, 4)
26 QT_DEPRECATED_VERSION_X_6_4("Use QQmlTriviallyDestructibleDebuggingEnabler instead "
27 "or just call QQmlDebuggingEnabler::enableDebugging().")
29#endif
30
35
36 static void setServices(const QStringList &services);
37
39 const QString &hostName = QString());
42 static bool startDebugConnector(const QString &pluginName,
44};
45
46// Unnamed namespace to signal the compiler that we
47// indeed want each TU to have its own QQmlDebuggingEnabler.
48namespace {
51 {
54 }
55};
56// Execute code in constructor before first QQmlEngine is instantiated
57#if defined(QT_QML_DEBUG_NO_WARNING)
59#elif defined(QT_QML_DEBUG)
61#endif
62} // unnamed namespace
63
64#endif
65
67
68#endif // QQMLDEBUG_H
\inmodule QtSql
@ HookCount
#define Q_ATOMIC_FLAG_INIT
Definition qqmldebug.cpp:21
static Q_CONSTINIT std::atomic_flag s_printedWarning
Definition qqmldebug.cpp:24
QT_REQUIRE_CONFIG(qml_debug)
QDebug Q_QML_EXPORT operator<<(QDebug debug, const QQmlError &error)
Q_STATIC_ASSERT(sizeof(SharedImageHeader) % 4==0)