qfedu-qt-level/qtdemo01/teacher.h

20 lines
355 B
C
Raw Normal View History

2023-08-07 19:24:59 +08:00
#ifndef TEACHER_H
#define TEACHER_H
#include <QObject>
#include <QDebug>
class Teacher : public QObject
{
Q_OBJECT
public:
explicit Teacher(QObject *parent = nullptr);
public slots:
void wake_up();
void wake_up(const QString &msg); // 信号带参数,处理的槽函数也要有参数,且类型保持一致
};
#endif // TEACHER_H