Skip to content

Commit 270754e

Browse files
committed
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.
1 parent 4b5d97f commit 270754e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

NodeGraphQt/widgets/viewer.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -617,9 +617,7 @@ def mouseMoveEvent(self, event):
617617
path = QtGui.QPainterPath()
618618
path.addRect(map_rect)
619619
self._rubber_band.setGeometry(rect)
620-
self.scene().setSelectionArea(
621-
path, QtCore.Qt.IntersectsItemShape
622-
)
620+
self.scene().setSelectionArea(path)
623621
self.scene().update(map_rect)
624622

625623
if self.SHIFT_state or self.CTRL_state:

0 commit comments

Comments
 (0)