PDA

View Full Version : QCanvasItem::drawShape : Draw a line of 100000px on X11



olzzen
17th June 2011, 13:58
Hi folks!

I have an Item inherited from QCanvasPolygonalItem, in the Item::drawShape function sometimes i have to draw very long lines (lets say about 100000px).
When i draw such a line in the drawShape function, the line is displayed incorrectly, there are only fragments of the line visible.
When i draw a polygon of the areaPoints of that item, the polygon is also incorrect.

Has anybody a brief statement or a long explanation ;) ?

Is it correct: a QCanvasLine will always be entirely drawn, even if only a small percentage lies within the visible area?

Thanks
olzzen

Using Qt3.3.8 on X11.