开发者

Cannot declare Signal in baseclass

开发者 https://www.devze.com 2023-03-24 02:20 出处:网络
I am having a class A, parent of class B a开发者_运维百科nd class C. I have signals: declared and used in class B and class C. But when i try to write other signals: in class A, its giving me vtable r

I am having a class A, parent of class B a开发者_运维百科nd class C. I have signals: declared and used in class B and class C. But when i try to write other signals: in class A, its giving me vtable reference errors. I am not able to write the Q_OBJECT macro in .h file, which result in error.


Since you have not provided any code I will just make a wild guess.

Undefined reference to `vtable kind of errors usually stem from moc compiler not generating code.

I am just guessing that you need to re-run qmake.

Also make sure that this file is included to HEADERS section of your .pro file.

0

精彩评论

暂无评论...
验证码 换一张
取 消