Qt 6.x
The Qt SDK
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#include <QtGui>
5#include <QtDebug>
6#include <QDeclarativeComponent>
7
9 void statusChanged(QDeclarativeComponent::Status status) {
10 if (status == QDeclarativeComponent::Error) {
11 foreach (const QDeclarativeError &error, component->errors()) {
12 const QByteArray file = error.url().toEncoded();
13 QMessageLogger(file.constData(), error.line(), 0).debug() << error.description();
14 }
15 }
16 }
18
\inmodule QtCore
Definition qbytearray.h:57
\inmodule QtCore
\inmodule QtCore
Definition qlogging.h:68
void debug(const char *msg,...) const Q_ATTRIBUTE_FORMAT_PRINTF(2
Logs a debug message specified with format msg.
Definition qlogging.cpp:385
const QLoggingCategory & category()
[1]
void statusChanged(QDeclarativeComponent::Status status)
[1]
Definition qlogging.cpp:9
DBusConnection const char DBusError * error
static qreal component(const QPointF &point, unsigned int i)
QFile file
[0]