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

QGraphics*Item with setDashPattern gets corrupted while scrolling

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.7.1, 5.9.1
    • Widgets: GraphicsView
    • None

    Description

      I've attached a simple PyQt script to demonstrate this issue (sorry it's not C++).  Basically, I've got a QGraphicsRectItem (or other QGraphics*Item objects) which have a QPen with a dashPattern set, scrolling slowly around the QGraphicsView/QGraphicsScene will cause corruption in the newly-drawn areas of the item.  I've attached a picture to show what I mean - on my attached script, if you scroll slowly down, the lefthand side of the RectItem can be a nearly-solid line, whereas the righthand side won't get rendered at all.

      This only seems to happen while scrolling.

      I don't have an example handy but I've seen the exact same thing with QGraphicsLineItems as well.

      Attachments

        1. dashedline.py
          0.9 kB
        2. dashedline2.py
          1 kB
        3. qt-dashedline.png
          qt-dashedline.png
          5 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            bibr Andreas Aardal Hanssen
            apocalyptech CJ Kucera
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes