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>
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:103
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
#define qDebug
[1]
Definition qlogging.h:164
#define Q_OBJECT
#define slots