How to undo last lineto() in a QPainterPath
I want to undo the last painted line in a QPainterPath.
Has someone an idea to realize this?
I found a solution but it is very dirt.
I save the last state of the QPainterPath in a temporare variable and overwrite the QPainterPath.