Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. clockwise/counter-clockwise drawing would influence the fill rule in shape()?
Forum Updated to NodeBB v4.3 + New Features

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

Scheduled Pinned Locked Moved Unsolved General and Desktop
qt4fillpolygonwindingfillqpainterpath
1 Posts 1 Posters 831 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    helloworld12345
    wrote on 8 Aug 2017, 21:53 last edited by helloworld12345 8 Sept 2017, 02:04
    #1

    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

    1 Reply Last reply
    0

    1/1

    8 Aug 2017, 21:53

    • Login

    • Login or register to search.
    1 out of 1
    • First post
      1/1
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved