Hello forum,
Please Check the following code:
QPolygonF is nothing but a vector of QPointF.
In that case can i visualize myPolygon as a dotted ellipse ?
Regards
Sajjad
Printable View
Hello forum,
Please Check the following code:
QPolygonF is nothing but a vector of QPointF.
In that case can i visualize myPolygon as a dotted ellipse ?
Regards
Sajjad
Maybe just set a proper brush and pen style for QPainter when drawing the ellipse item ? Why do you need the "toFillPolygon()" ?
i need to do some intersection testing or draw arrow item from the border of the ellipse when the user press on elliptical item
Was the simple maths from your earlier Decide the arrow graphics item's docking point not suitable?
Now that you have the ellipse as a polygon the approach used in the Diagram Scene Example may work for you.