Answer the question
In order to leave comments, you need to log in
How to leave a trail behind a QPainter's moving line?
It is necessary to draw lines that will leave a trail when moving. How can this be implemented? Something like this commons.wikimedia.org/w/index.php?title=File%3ASku... (added for clarity).
Answer the question
In order to leave comments, you need to log in
Perhaps you should use Qwt - Qt Widgets for Technical Applications .
Or look towards QPainterPath .
There you can draw such things, see examples from the documentation.
Didn't work with QPainter, but I think you can draw dashed lines instead of straight lines.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question