四大步,我是在第二步找到解闪办法的

  1. 添加头文件#include
  2. 看类声明中有没有Q_OBJECT
  3. 看slot函数有没有声明
private slots:
void xxxx();
  1. 查看slot有没有出现拼写错误~~~