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
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>
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
};
MyClass
[4]
Definition
doc_src_properties.cpp:58
MyClass::cppSlot
void cppSlot(const QString &msg)
Definition
myclass.h:10
QObject
\inmodule QtCore
Definition
qobject.h:103
QString
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition
qstring.h:129
qDebug
#define qDebug
[1]
Definition
qlogging.h:164
Q_OBJECT
#define Q_OBJECT
Definition
qtmetamacros.h:119
slots
#define slots
Definition
qtmetamacros.h:40
qtdeclarative
src
qml
doc
snippets
qml
qtbinding
signals-qml
myclass.h
Generated by
1.10.0