阅读背景:

QT编译时出现警告 Warning: Class Node implements the interface QGraphicsItem but does not list it in Q_INTERFACES. qobject_cast to QGraphicsItem will not work!

来源:互联网 

1.一定要将public QObject放在public QGraphicsItem的前面,并且在该类的定义中添加Q_OBJECT宏.1.一定要将public QObject放在public QGraphicsItem的前面,并




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: