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

QGraphicsEllipseItem gives wrong shape when the span angle is below 360 degrees

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.13.2, 5.14.0, 5.14.1
    • None
    • Tested on Ubuntu 16.04 and Ubuntu 18.04 and Python3.5, 3.7 and 3.8.

    Description

      Hey Qt team,

      I'm trying to convert a QGraphicsEllipseItem to a QPainterPath by using the shape() function.
      When I set the span angle to 360 degrees I get the right shape. But when I use a lower degree (e. g. 359, 180 or 90) I get a strange shape.

      I attached a picture for better understanding.
      Red is what I want and blue is what I get.

      I attached a minimal example so you can reproduce it.

      I also get the same behavior with PyQt5.

      Kind regards,
      Nico

      Attachments

        1. bug.py
          1 kB
        2. picture.png
          picture.png
          17 kB
        3. qtbug80937.zip
          2 kB

        Issue Links

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

          Activity

            People

              vgt Eirik Aavitsland
              nicon97 Nico Neumann
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes