Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Drawing dashed line in QQuickPaintedItem
manny_lp last edited by
I am drawing line using QQuickPaintedItemfrom a series of points : QPointF points; I want to draw dashed line for some portion of these 2000 points.
For example, from 1000-1500 dashed line.
Well, divide your work into 3 separate parts:
- draw the first part using normal line
- draw the middle bit using dashed line
- draw the rest using normal line again.
To modify line style, use QPen.