0%

Qt报错 a missing vtable usually means the first non-inline virtual member function has no definition

报错 a missing vtable usually means the first non-inline virtual member function has no definition

1
2
3
添加 Q_OBJECT 时 记得添加  头文件 #include <QObject>
析构函数
clean 一下,重新构建下

报错: error: ‘staticMetaObject’ is not a member of ‘YOUR_CLASS_NAME’

1
多继承的话, public QObject 放在写继承那个位置的第一个