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
myclass.h
Go to the documentation of this file.
1
// Copyright (C) 2017 The Qt Company Ltd.
2
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
3
#
include
<
QObject
>
4
#
include
<
QDebug
>
5
//![0]
6
class
MyClass
:
public
QObject
7
{
8
Q_OBJECT
9
public
slots
:
10
void
cppSlot
(
const
QString
&
msg
) {
11
qDebug
() <<
"Called the C++ slot with message:"
<<
msg
;
12
}
13
};
14
//![0]
main
int main(int argc, char *argv[])
[2]
Definition
buffer.cpp:77
MyClass
[4]
Definition
doc_src_properties.cpp:58
qtdeclarative
src
qml
doc
snippets
qml
qtbinding
signals-qml
myclass.h
Generated on Mon Mar 10 2025 00:41:15 for Qt by
1.13.2