warning :
Class ... implements the interface QGraphicsItem but does not list it in Q_INTERFACES. qobject_cast to QGraphicsItem will not work!
解决方法:
替换
class Foo : public QObject, public QGraphicsItem
为
class Foo : public QGraphicsObject
warning :
Class ... implements the interface QGraphicsItem but does not list it in Q_INTERFACES. qobject_cast to QGraphicsItem will not work!
解决方法:
替换
class Foo : public QObject, public QGraphicsItem
为
class Foo : public QGraphicsObject