[Qt-interest] Polyline clipping

Andre Haupt andre at bitwigglers.org
Tue Aug 25 09:28:34 CEST 2009


Hi all,

Is there a way to clip a polyline (non closed QPolygonF) by a rectangle
*before* drawing the polyline with QPainter::drawPolyline()?

This clipping would of course produce a bunch of new polylines, maybe
a QList<QPolygonF>?

I did not find such a method in the docs. Or didn't i look hard enough?


Best regards,

Andre




More information about the Qt-interest-old mailing list