Qt报错 a missing vtable usually means the first non-inline virtual member function has no definition 发表于 2020-06-16 更新于 2021-01-20 分类于 technology 报错 a missing vtable usually means the first non-inline virtual member function has no definition 123添加 Q_OBJECT 时 记得添加 头文件 #include <QObject>析构函数clean 一下,重新构建下 报错: error: ‘staticMetaObject’ is not a member of ‘YOUR_CLASS_NAME’ 1多继承的话, public QObject 放在写继承那个位置的第一个