- edited description
Screen artifact when drag scene
Scene foreground painting bug, only when no color variable.
Edit, actually this is only when the colorbar is hidden! (had nothing to do with color variable or not!
Comments (6)
-
reporter -
reporter self.setViewportUpdateMode(QGraphicsView.FullViewportUpdate)
(was originally
SmartViewportUpdate
) Made it work, but I think it become very slow. -
reporter maybe this similar problem? http://www.qtcentre.org/threads/11470-drawForeground-update-trouble****
-
reporter -
reporter Observation: scroll scene is slower if the colorbar is shown, which makes sense, because it's redrawing whole scene all the time, unlike when it's hidden, the scrolling only redraws the part that wasn't shown, hence the artifacts.
I can resolve this by force it to update whole scene by
self.updateScene([self.mapToScene(self.contentsRect()).boundingRect()])
but this causes the same slowness when colorbar (a child widget) is shown.Problems to solve here: - slowness due to redraw whole scene when with children widget - if not redraw whole scene, artifacts is there, the grid label and scene title probably shouldn't be drawn inside foreground.
-
reporter - changed status to resolved
Fix issue
#50of foreground artifact, but created issue #51.This is temporarily fixed at performence cost. Graphicsview foreground not designed to draw viewport decorations. Also should check floating colorbar causing performence drop as it refresh whole, which is why it didn't have artifact.
→ <<cset d34a40d26390>>
- Log in to comment