I tried to inherit from QGraphicsEllipseItem because I wanted to add some features to it. However, I came across this error, which probably has something to do with the compiler / precompiler or moc?
error: 'staticMetaObject' is not a member of 'QGraphicsEllipseItem'
And here is the class code:
class MyEllipseItem : public QGraphicsEllipseItem
{
Q_OBJECT
public:
MyEllipseItem (const QRectF & outline) : QGraphicsEllipseItem(outline)
{
}
};
source
share