C++ (Qt)class MyItem : public QGraphicsItem{public: virtual QPainterPath shape( void ) const { return QPainterPath(); }};