Error: Meta object features not supported for nested classes

错误:嵌套类不支持元对象功能,所以在使用元对象时不要嵌套使用Q_OBJECT

#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QDebug>

namespace Ui {
   
    
    
class MainWindow;
}

class MainWindow 

猜你喜欢

转载自blog.csdn.net/MMTS_yang/article/details/111179794