error:'staticMetaObject' is not a member of 'QGraphicsItem'
error:'qt_metacast' is not a member of 'QGraphicsItem'
error:'qt_metacall' is not a member of 'QGraphicsItem'
1
2
3
4
5
Multiple Inheritance Requires QObject to Be First(多重继承QObject一定要放在前面)
若出现编译时出现警告 Warning: Class Node implements the interface QGraphicsItem but does not list it in Q_INTERFACES. qobject_cast to QGraphicsItem will not work!