From 4b8a49114d5ffefe785b233a34a20e2b64d7faef Mon Sep 17 00:00:00 2001 From: Johnny Chan Date: Mon, 7 Oct 2024 11:40:08 +1300 Subject: [PATCH] changed update mode suggestion from @JamesDeAntonis #431 --- NodeGraphQt/widgets/viewer.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/NodeGraphQt/widgets/viewer.py b/NodeGraphQt/widgets/viewer.py index ccaf5a07..6aeeba3c 100644 --- a/NodeGraphQt/widgets/viewer.py +++ b/NodeGraphQt/widgets/viewer.py @@ -66,10 +66,9 @@ def __init__(self, parent=None, undo_stack=None): self.setRenderHint(QtGui.QPainter.Antialiasing, True) self.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff) self.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff) - self.setViewportUpdateMode(QtWidgets.QGraphicsView.FullViewportUpdate) + self.setViewportUpdateMode(QtWidgets.QGraphicsView.BoundingRectViewportUpdate) self.setCacheMode(QtWidgets.QGraphicsView.CacheBackground) - self.setOptimizationFlag( - QtWidgets.QGraphicsView.DontAdjustForAntialiasing) + self.setOptimizationFlag(QtWidgets.QGraphicsView.DontAdjustForAntialiasing) self.setAcceptDrops(True) self.resize(850, 800)