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
qlogging.cpp
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
3
4#undef QT_NO_FOREACH // this file contains unported legacy Q_FOREACH uses
5
6#include <QtGui>
7#include <QtDebug>
8#include <QQmlComponent>
9
12 if (status == QQmlComponent::Error) {
13 for (const QQmlError &error: std::as_const(component->errors())) {
14 const QByteArray file = error.url().toEncoded();
15 QMessageLogger(file.constData(), error.line(), 0).debug() << error.description();
16 }
17 }
18 }
20
\inmodule QtCore
Definition qbytearray.h:57
\inmodule QtCore
\inmodule QtCore
Definition qlogging.h:72
void debug(const char *msg,...) const Q_ATTRIBUTE_FORMAT_PRINTF(2
Logs a debug message specified with format msg.
Definition qlogging.cpp:389
Status
\qmltype Component \instantiates QQmlComponent\inqmlmodule QtQml
The QQmlError class encapsulates a QML error.
Definition qqmlerror.h:18
const QLoggingCategory & category()
[1]
void statusChanged(QQmlComponent::Status status)
[1]
Definition qlogging.cpp:11
DBusConnection const char DBusError * error
static qreal component(const QPointF &point, unsigned int i)
QFile file
[0]