clockwise/counter-clockwise drawing would influence the fill rule in shape()?



  • 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.

    1. If I draw the polygon clockwise, everything is good, I can move the whole combined graphics by dragging either inside polygon or red ellipse.
    2. 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.

    0_1502229401775_polygon.png



Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.