当前位置:网站首页>'function VTable for error: undefined reference to... 'cause and solution of the problem
'function VTable for error: undefined reference to... 'cause and solution of the problem
2022-07-29 06:51:00 【sg-expert】
QT in , Classes should support signal and slot mechanisms , Need to inherit from QObject And add Q_OBJECT macro .
If you use QtCreator Create a class , No choice to inherit from QObject Class or its subclasses , After creation, it is manually modified and inherited from QObject And manually add Q_OBJECT macro , There may be "function vtable for error: undefined reference to … " error .
resolvent : Remove the newly created class file from the project ( Do not delete from disk ), Then add it to the project ,QtCreator This class will be re parsed , The above error will not occur again .
边栏推荐
猜你喜欢

STP spanning tree principle and example of election rules

Hongke shares | why EtherCAT is the best solution to improve the performance of the control system?

Hongke share | bring you a comprehensive understanding of "can bus error" (II) -- can error types

【冷冻电镜|论文阅读】子断层平均 M 软件解读:Multi-particle cryo-EM refinement with M

Hongke share | bring you a comprehensive understanding of "can bus error" (I) -- can bus error and error frame

Huawei switch ce12808 import and export configuration file

N2 interface of 5g control plane protocol

5g service interface and reference point

CDM—码分复用(简单易懂)

Embedding理解+代码
随机推荐
5G控制面协议之N2接口
Base64与File之间的相互转化
【冷冻电镜】RELION4.0之subtomogram对位功能源码分析(自用)
ss命令详解
Hongke case | PAC: an integrated control solution integrating SoftPLC control logic, HMI and other service functions
Software definition boundary SDP
Thinkphp5 frequently asked questions
find命令详解(文章最后运维最常用操作)
华为交换机CE12808导入导出配置文件
Execution sequence of finally and return
MySQL:当你CRUD时BufferPool中发生了什么?十张图就能说清楚
MySQL 事物四种隔离级别分析
案例补充、ATM
最新PyCharm2018破解教程
Relationship between subnet number, host number and subnet mask
10种常见的软件架构模式
Enterprise manager cannot connect to the database instance in Oracle10g solution
Hongke automation SoftPLC | Hongke kPa modk operation environment and construction steps (2) -- modk operation environment construction
如何画出优秀的架构图
【技能积累】presentation实用技巧积累,常用句式