QGraphicsView 中不能刷新的解决方案

在QGraphicsView的事件中,不论使用 update,repaint,抑或updateScence,resetCacheContent, 均不可以刷新界面,对此有两个解决方案:

(1)调用 viewport 的update函数

(2)调用场景的update(),才能重绘

你可能感兴趣的:(QGraphicsView 中不能刷新的解决方案)