qfedu-qt-level/qtdemo01/teacher.cpp

16 lines
283 B
C++
Raw Permalink Normal View History

2023-08-07 19:24:59 +08:00
#include "teacher.h"
Teacher::Teacher(QObject *parent) : QObject(parent)
{
}
void Teacher::wake_up(){
qDebug() << "请睡觉的学生站起来,出去跑两圈";
}
void Teacher::wake_up(const QString &msg)
{
qDebug() << "学生因为 "<<msg<<" 原因上课睡觉了";
}