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
qqmlerror.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 QQMLERROR_H
5#define QQMLERROR_H
6
7#include <QtQml/qtqmlglobal.h>
8
9#include <QtCore/qurl.h>
10#include <QtCore/qstring.h>
11
13
14// ### Qt 7: should this be called QQmlMessage, since it can have a message type?
15class QDebug;
17class Q_QML_EXPORT QQmlError
18{
19public:
20 QQmlError();
21 QQmlError(const QQmlError &);
22 QQmlError(QQmlError &&other) noexcept
23 : d(std::exchange(other.d, nullptr))
24 {}
25
26 QQmlError &operator=(const QQmlError &);
27 QT_MOVE_ASSIGNMENT_OPERATOR_IMPL_VIA_MOVE_AND_SWAP(QQmlError)
28 ~QQmlError();
29
30 void swap(QQmlError &other)
31 { qt_ptr_swap(d, other.d); }
32
33 bool isValid() const;
34
35 QUrl url() const;
36 void setUrl(const QUrl &);
37 QString description() const;
38 void setDescription(const QString &);
39 int line() const;
40 void setLine(int);
41 int column() const;
42 void setColumn(int);
43
44 QObject *object() const;
45 void setObject(QObject *);
46
47 QtMsgType messageType() const;
48 void setMessageType(QtMsgType messageType);
49
50 QString toString() const;
51 friend bool Q_QML_EXPORT operator==(const QQmlError &a, const QQmlError &b);
52private:
53 QQmlErrorPrivate *d;
54};
55
56QDebug Q_QML_EXPORT operator<<(QDebug debug, const QQmlError &error);
57
58Q_DECLARE_TYPEINFO(QQmlError, Q_RELOCATABLE_TYPE);
59
60QT_END_NAMESPACE
61
62#endif // QQMLERROR_H
\inmodule QtCore
Definition qobject.h:105
void setInitialState(QObject *o) override
Called after the object is first created, but before complex property bindings are evaluated and,...
void statusChanged(Status s) override
Called when the status of the incubator changes.
QQmlComponentIncubator(QV4::Heap::QmlIncubatorObject *inc, IncubationMode mode)
QV4::PersistentValue incubatorObject
The QQmlComponent class encapsulates a QML component definition.
The QQmlError class encapsulates a QML error.
Definition qqmlerror.h:18
Status
Specifies the status of the QQmlIncubator.
Combined button and popup list for selecting options.
DECLARE_HEAP_OBJECT(QmlContext, ExecutionContext)
Definition qjsvalue.h:23
Q_STATIC_LOGGING_CATEGORY(lcAccessibilityCore, "qt.accessibility.core")
Q_DECLARE_TYPEINFO(QByteArrayView, Q_PRIMITIVE_TYPE)
static void removePendingQPropertyBinding(QV4::Value *object, const QString &propertyName, const QQmlObjectCreator *creator)
static void QQmlComponent_setQmlParent(QObject *me, QObject *parent)
DEFINE_OBJECT_VTABLE(QV4::QmlIncubatorObject)
V4_DEFINE_EXTENSION(QQmlComponentExtension, componentExtension)
static QQmlParserStatus * parserStatusCast(const QQmlType &type, QObject *rv)
QDebug Q_QML_EXPORT operator<<(QDebug debug, const QQmlError &error)
double d
[1]
static ReturnedValue method_set_statusChanged(const FunctionObject *, const Value *thisObject, const Value *argv, int argc)
static ReturnedValue method_get_status(const FunctionObject *, const Value *thisObject, const Value *argv, int argc)
static ReturnedValue method_get_object(const FunctionObject *, const Value *thisObject, const Value *argv, int argc)
void statusChanged(QQmlIncubator::Status)
void setInitialState(QObject *, RequiredProperties *requiredProperties)
static ReturnedValue method_forceCompletion(const FunctionObject *, const Value *thisObject, const Value *argv, int argc)