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
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
7
//! [0]
8
class
MyObject
:
public
QObject
,
public
QQmlParserStatus
9
{
10
Q_OBJECT
11
Q_INTERFACES(QQmlParserStatus)
12
13
public
:
14
MyObject
(
QObject
*
parent
=
nullptr
);
15
// ...
16
void
classBegin
()
override
;
17
void
componentComplete
()
override
;
18
};
19
//! [0]
MyObject
[7]
Definition
src_corelib_kernel_qobject.cpp:96
MyObject::classBegin
void classBegin() override
Invoked after class creation, but before any properties have been set.
MyObject::componentComplete
void componentComplete() override
Invoked after the root component that caused this instantiation has completed construction.
qtdeclarative
src
qml
doc
snippets
code
src_qml_qqmlparserstatus.cpp
Generated on Mon Mar 10 2025 00:48:14 for Qt by
1.13.2