C++ (Qt)void YourGraphicsPathItem::paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget ){ QStyleOptionGraphicsItem o = *option; o.state &= ~QStyle::State_Selected; QGraphicsPathItem::paint( painter, &o, widget );}
C++ (Qt)scene->addItem( new YourGraphicsPathItem() );