Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
6.2.4, 6.3.0
-
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]
-
-
5020d1b22a (qt/qtbase/dev) 5020d1b22a (qt/tqtc-qtbase/dev) 45bebd7840 (qt/qtbase/6.3) 45bebd7840 (qt/tqtc-qtbase/6.3) 9b0c6d7ba1 (qt/tqtc-qtbase/6.2)
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())