Mouseevent remembers last clicked point
-
What happens is when i click the first time, a line is already drawn from the Qt origin to the point where i first click my mouse, then drawing goes fine, but releasing the click and starting at a different point to draw again, a line is drawn from where i released the mouse button to where i press it again. I think that this and the line always coming from the origin are of the same type. What can i do so it only draws when the mouse is clicked and when i release the mouse button, the last point is not used as first point in my new drawing?