Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-8720

QPolygonF::containsPoint function returns false when point is in area defined by polygon

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 4.5.2
    • GUI: Painting
    • None

    Description

      Steps to reproduce / test case

      QVector areaPoints; 
      areaPoints.append(QPoint(-1,-1)); 
      areaPoints.append(QPoint(-1,1)); 
      areaPoints.append(QPoint(1,1)); 
      areaPoints.append(QPoint(1,-1)); 
       
      QPolygonF poligonF(areaPoints); 
      QPointF testPointF(1.0, -1.0); 
      bool result = polygon.containsPoint(testPointF, Qt::OddEvenFill); 
      

      The result of this test is FALSE (expected TRUE).

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            sletta Gunnar Sletta
            isdale Keith Isdale (closed Nokia identity) (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes