开发者

Cannot declare Signal in baseclass

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜