• 4774阅读
  • 1回复

QGraphicsItem刷新机制问题 [复制链接]

上一主题 下一主题
离线pcfan001
 

只看楼主 倒序阅读 楼主  发表于: 2013-11-01
开发过程中,使用QGraphicScene+QGraphicView框架开发一个画图程序。在开发过程中,不断添加QGraphicItem到scene中,QGraphicItem实现了放大移动旋转等功能。当scene中一定数量的item重叠时,对一个item进行update会引起其他重叠区域item的的刷新,这样很影响效率。有什么方法可以解决这种问题?求大大指教!
离线weinkym

只看该作者 1楼 发表于: 2013-11-02
根据update的说明,貌似这是item的一个副作用
As a side effect of the item being repainted, other items that overlap the area rect may also be repainted.
快速回复
限100 字节
 
上一个 下一个