Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
QPolygon does not detect QPoint on edge ?
ranshalit last edited by
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 ?