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

Qt raster engine's drawEllipse produces polygons when used in drawBackground() of a scaled GraphicsView/Scene

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 4.7.0
    • 4.6.2
    • GUI: Painting
    • None
    • Windows, OS X, X11
    • c41dbbb5e6495e26cd3223d39c61decd951afeba, 119d7dddc8da189ccd1cbc55ed3292f311c30e0c, c46688b8a88da02028405604ab633b27d3fefa68

    Description

      Basic steps to reproduce is simply creating a QGraphicsScene with drawBackground overloaded, containing a drawEllipse call. When the corresponding QGraphicsView is scaled by a large amount, the circle produced will be a polygon with eight sides instead of a circle.
      This problem only happens when the backend used is Qt's raster engine, which is the case by default on Windows. Confirmed to draw a perfect circle if used with either OS X or X backends.
      In case the information is worth anything: I have tried to replicate this issue using a QPainter with the exact same transform() drawing on a plain QWidget with expected (good) results.
      Simple example is attached.

      Attachments

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

        Activity

          People

            sletta Gunnar Sletta
            preglow Thom Johansen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes