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