class MyItem : public QGraphicsItem
{
public:
RectItem();
QRectF boundingRect() const;
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget*widget);
protected:
函数声明中第四行在qt5中是不是有问题呢?老是出现D:\qt\graph03\myitem.h:10: 错误:ISO C++ forbids declaration of 'RectItem' with no type [-fpermissive]
RectItem();这样子的错误。
^