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

QGraphicsScene with manual update seems to skip painting sometimes

    XMLWordPrintable

Details

    Description

      When using QGraphicsScene::update() with a rectangle as an input it does not always work, but with no parameter it works fine.

      To reproduce:

      • run:
        pyside6-rcc resources.qrc -o resources.py
        python main.py
        
      • drag the logo around

      It seems to get "stuck" sometimes. Especially if it touches the edges of the viewport, but also when it is completely within it.

      However, it works fine if you swap the update call in itemChange to the one without any arguments.

      Attachments

        1. main.cpp
          2 kB
          Volker Hilsheimer
        2. qtbug113189.zip
          2.49 MB
          Joni Poikelin
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            vhilshei Volker Hilsheimer
            poikelin Joni Poikelin
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes