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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P3: Somewhat important 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.

      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

        1. bug.py
          1 kB
          Nico Neumann
        2. picture.png
          17 kB
          Nico Neumann
        3. qtbug80937.zip
          2 kB
          Friedemann Kleint
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

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

              Created:
              Updated:

                There are no open Gerrit changes