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

[REG Qt 6 -> Qt 6] QGraphicsView Artifacts

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • P1: Critical
    • 6.2.5, 6.3.1, 6.4.0 Beta1
    • 6.2.4, 6.3.0
    • Widgets: GraphicsView
    • None
    • Windows 11 10.0.22000
      Python 3.8
      Qt 6.2.4 (x86_64-little_endian-llp64 shared (dynamic) release build; by MSVC 2019) [limited API]

    Description

      Recently updated from Qt5 to Qt6 and visual artifacts have appeared when dragging rubberband selection boxes in QGraphicsView (refer attached images)

      Specifically, I am using PySide6, but have also tested with PyQt6 so am confident it is an issue with Qt itself.

       

      The code to reproduce the issue using PySide6 is below:

       

      import sys
      from PySide6.QtCore import QLibraryInfo, qVersion
      from PySide6 import QtWidgets
      class Window(QtWidgets.QGraphicsView):
          def __init__(self):
              super(Window, self).__init__()
              self.setDragMode(QtWidgets.QGraphicsView.DragMode.RubberBandDrag)
              self.scene = QtWidgets.QGraphicsScene(self)
              self.setScene(self.scene)
       
      if __name__ == '__main__':
          print('Python {}.{}'.format(sys.version_info[0], sys.version_info[1]))
          print(QLibraryInfo.build())
          app = QtWidgets.QApplication(sys.argv)
          window = Window()
          window.setWindowTitle(qVersion())
          window.show()
          sys.exit(app.exec())
      

       

       

       

      Attachments

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

        Activity

          People

            vgt Eirik Aavitsland
            bjhowie Ben Howue
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes