how to insert an element inbetween to QGraphicsPathitem?
Selvajothi last edited by
I have drawn a QGraphicspathitem with five elements. Now I want to add/insert an element inbetween so that the QGraphicsPathitem will have six element .
Do we have any possible solutions for this?
JonB last edited by
I know nothing about this, but since you have received no other reply.....
Since I do not see any "insert item" in QGraphicsPathItem Class, but I do see void QGraphicsPathItem::setPath(const QPainterPath &path)
Sets the item's path to be the given path.
See also path().
are you supposed to use
QPainterPath QGraphicsPathItem::path() constto retrieve the current path (if you need that), manipulate to insert your extra element, and pass it back to
QGraphicsPathItem::setPath()to reset the path as a whole?