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
HelloWorld.qml.cpp
Go to the documentation of this file.
1// Copyright (C) 2022 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
3
4/* Disclaimer: This file is an "as is" copy of the C++ header generated for the
5 accompanying HelloWorld.qml. Its pieces are used to:
6
7 * verify that the generated code is similar to what is contained in this file
8 * provide documentation snippets for the qmltc docs
9
10 Note: all the stuff below MAGIC_QMLTC_TEST_DELIMITER_LINE comment
11 participates in the aforementioned activities. Prefer to put arbitrary stuff
12 before that comment.
13*/
14
15// MAGIC_QMLTC_TEST_DELIMITER_LINE
16
17//! [qmltc-hello-world-generated]
18class HelloWorld : public QObject
19{
23
24public:
26
28 void created();
29
30public:
32 void setHello(const QString& hello_);
34 Q_INVOKABLE void printHello(passByConstRefOrValue<QString> prefix, passByConstRefOrValue<QString> suffix);
35
36 // ...
37};
38//! [qmltc-hello-world-generated]
[qmltc-hello-world-generated]
Q_INVOKABLE void printHello(passByConstRefOrValue< QString > prefix, passByConstRefOrValue< QString > suffix)
QString hello()
void setHello(const QString &hello_)
QBindable< QString > bindableHello()
QML_ELEMENTQString hello