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
src_qml_qqmlparserstatus.cpp
Go to the documentation of this file.
1// Copyright (C) 2020 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
3
4#include <QtCore/qobject.h>
5#include <QtQml/qqmlparserstatus.h>
6
8class MyObject : public QObject, public QQmlParserStatus
9{
12
13public:
14 MyObject(QObject *parent = nullptr);
15 // ...
16 void classBegin() override;
17 void componentComplete() override;
18};
void classBegin() override
Invoked after class creation, but before any properties have been set.
MyObject(QObject *parent=nullptr)
void componentComplete() override
Invoked after the root component that caused this instantiation has completed construction.
\inmodule QtCore
Definition qobject.h:103
QObject * parent() const
Returns a pointer to the parent object.
Definition qobject.h:346
The QQmlParserStatus class provides updates on the QML parser state.
#define Q_OBJECT
#define Q_INTERFACES(x)