14 lines
625 B
Diff
14 lines
625 B
Diff
--- a/NodeGraphQt/widgets/viewer.py
|
|
+++ b/NodeGraphQt/widgets/viewer.py
|
|
@@ -521,8 +521,10 @@ class NodeViewer(QtWidgets.QGraphicsView):
|
|
path = QtGui.QPainterPath()
|
|
path.addRect(map_rect)
|
|
self._rubber_band.setGeometry(rect)
|
|
+ # PySide6 6.7+ requires ItemSelectionOperation parameter
|
|
self.scene().setSelectionArea(
|
|
- path, QtCore.Qt.IntersectsItemShape
|
|
+ path, QtCore.Qt.ReplaceSelection,
|
|
+ QtCore.Qt.IntersectsItemShape
|
|
)
|
|
self.scene().update(map_rect)
|