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)
{
}
};