QPolygon does not detect QPoint on edge ?



  • Hello,

    I am using QPolygon which is a simple rectangle (4 points composing rectangle), The I use containsPoint to check if a given point is contained inside the Polygon.
    The strange thing is that I see that on a rectangular the points in the bottom edge of the rectangle return false in containsPoint , and the points in the upper edge are always considered inside polygon.

    I tried to use both methods of Qt::FillRule, but got same results in both.
    Any idea why the algorithms containsPoint behaves like this ?

    Thank you.
    Ran


Log in to reply
 

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