What is the value of length??
if length is 2, you're painting 4 points
What is the value of length??
if length is 2, you're painting 4 points
Last edited by mcosta; 29th July 2011 at 11:05. Reason: updated contents
A camel can go 14 days without drink,
I can't!!!
length is a global variable and the value is 20.
From QT Docs
How do you set the boundingRect() ?void QGraphicsItem:aint ( QPainter * painter, const QStyleOptionGraphicsItem * option, QWidget * widget = 0 ) [pure virtual]
...
Make sure to constrain all painting inside the boundaries of boundingRect() to avoid rendering artifacts (as QGraphicsView does not clip the painter for you).
...
Show the code of CMCanvasPointer::boundingRect().
A camel can go 14 days without drink,
I can't!!!
What zoom level does the object disappear at? You may be over- or under-flowing the painter's underlying units.
Bookmarks