First:
From what I understand you make each item very big - it's pos() is set to (0,0) and it's rect is defined by the polygon.
This statement puzzles me.
I just do
QVector<QPointF> Tpz(4);
<fill in the 4 points>
scene->addPolygon(Trapezoid,AreaShotPen);
QVector<QPointF> Tpz(4);
<fill in the 4 points>
QPolygonF Trapezoid(Tpz);
scene->addPolygon(Trapezoid,AreaShotPen);
To copy to clipboard, switch view to plain text mode
Where does the pos() come in?
Secondly, can you apply levelofDetail to a high-level draw such as scene->addRect();?
Or do you have to create a custom QGraphicsItem and apply it to painter->drawRect() to do that?
Bookmarks