Quote Originally Posted by d_stranz View Post
You could try QPainterPath::toSubpathPolygons(), which might get you back the polyline.
Thank you, your suggestion helped.

I got the list of QPolygonF from which I got a single QPolygonF. And then I created a new QPolygonF in which I only inserted those QPointF which were needed. And then I drew that.