I am working on an application using Qt5 in which you can free hand draw arbitrary shapes in vector graphics, move them and and partially remove parts (just like an eraser in Microsoft paint).
I draw the shapes in QGraphicsScene by adding QGraphicsPathItem and move them using the QGraphicsItem::ItemIsMovable flag. The question of the eraser remains.
Has anyone faced the task of partial removal of QGraphicsPathItem? Especially in a situation when we divide the figure into two (or more) parts with an eraser and these should become separate new QGraphicsPathItem ? Is it possible to implement it?
Thanks for any help!