Qt inheriting from QGraphicsEllipseItem

Posted by JHollanti on Stack Overflow See other posts from Stack Overflow or by JHollanti
Published on 2010-04-15T11:09:12Z Indexed on 2010/04/15 11:13 UTC
Read the original article Hit count: 228

Filed under:

I was trying to inherit from QGraphicsEllipseItem 'cause i wanted to add some functionality to it. However i was faced with this error, which probably has something to do with the compiler/precompiler or moc?

error: 'staticMetaObject' is not a member of 'QGraphicsEllipseItem'

And here's the class code:

class MyEllipseItem : public QGraphicsEllipseItem
{
    Q_OBJECT

public:
    MyEllipseItem (const QRectF & outline) : QGraphicsEllipseItem(outline)
    {

    }
};

© Stack Overflow or respective owner

Related posts about qt