Unsolved clockwise/counter-clockwise drawing would influence the fill rule in shape()?
helloworld12345 last edited by helloworld12345
In my shape(), I created a QPainterPath(), set the fill rule to Qt.WindingFill, add one large polygon and multiple ellipses around the points. Like picture below.
- If I draw the polygon clockwise, everything is good, I can move the whole combined graphics by dragging either inside polygon or red ellipse.
- However I draw the polygon counter-clockwise, I CAN NOT move the combined graphics if I drag the intersection part of ellipses and polygon, they are pointed out by black lines below.
How would clockwise/counter-clockwise drawing make this difference? How do I fix the issue in counter-clockwise case? I appreciate your help.