A
A
Alexander2014-08-01 15:26:07
Qt
Alexander, 2014-08-01 15:26:07

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

2 answer(s)
E
EXL, 2014-08-02
@Nexelen

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.

N
Nikolay Nozdrin-Plotnitsky, 2014-08-01
@scientistnik

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 question

Ask a Question

731 491 924 answers to any question