Qt 6.x
The Qt SDK
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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>
6class MyClass : public QObject
7{
9public slots:
10 void cppSlot(const QString &msg) {
11 qDebug() << "Called the C++ slot with message:" << msg;
12 }
13};
void cppSlot(const QString &msg)
Definition myclass.h:10
\inmodule QtCore
Definition qobject.h:90
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:127
#define qDebug
[1]
Definition qlogging.h:160
#define Q_OBJECT
#define slots