代码改变世界

Render QGraphicsItem on QPixmap: aggregate 'QWidget w' has incomplete type and cannot be defined

2017-09-08 16:10  nigaopeng  阅读(941)  评论(0编辑  收藏  举报

Render QGraphicsItem on QPixmap: aggregate 'QWidget w' has incomplete type and cannot be defined

 

#include <QWidget> and #include <QStyleOptionGraphicsItem> should fix the compile error you are getting.

 

常见错误: 头文件未包含