From 270754e2153a520df7a45fcb4fca5a842c211c0b Mon Sep 17 00:00:00 2001 From: Jerome Drese Date: Tue, 8 Oct 2024 18:09:33 +0200 Subject: [PATCH] Fix `mouseMoveEvent` selection rectangle Qt6 no longer accepts the same type of argument for the scene setSelectionArea. This commit fixes the issue by just falling back to the default selection rectangle behaviour which is the same as the intended behaviour on previous implementation. --- NodeGraphQt/widgets/viewer.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/NodeGraphQt/widgets/viewer.py b/NodeGraphQt/widgets/viewer.py index ccaf5a07..7ada5c37 100644 --- a/NodeGraphQt/widgets/viewer.py +++ b/NodeGraphQt/widgets/viewer.py @@ -617,9 +617,7 @@ def mouseMoveEvent(self, event): path = QtGui.QPainterPath() path.addRect(map_rect) self._rubber_band.setGeometry(rect) - self.scene().setSelectionArea( - path, QtCore.Qt.IntersectsItemShape - ) + self.scene().setSelectionArea(path) self.scene().update(map_rect) if self.SHIFT_state or self.CTRL_state: