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

QGraphicsItem::shape does not account for dash pattern

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.15
    • Widgets: GraphicsView
    • None

    Description

      I've attached a project that displays two ellipses on a QGraphicsScene. The only difference between these two is that the ::shape function accounts for the dash pattern. Failing to do this leads to the normal issues where certain paint artifacts don't get refreshed.

      Here is a screenshot of what the project should look like when run:

      The top left of the left ellipse has some left over pen strokes from the previous frame. The right ellipse is what the final result should look like.

       

      I've only tested this on Qt 5.15.2, but it doesn't seem like Qt6 has any big changes in the ::shape implementation so I would imagine this issue would exist in those versions as well.

      Attachments

        Activity

          People

            bibr Andreas Aardal Hanssen
            kwakobo Jason Kwak
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: