Qt清除QGraphicsScene中的特定区域

时间:2017-11-29 09:28:08

标签: c++ qt qt4 qt5

我想清除QGraphicsScene中的特定区域。我发现Qt提供了一个函数QGraphicsScene :: clear()来清除整个QGraphicsScene。我的目的是清除QGraphicsScene中的特定区域。我将尝试通过图像解释我的意图

清除前 (目前,QGraphicsScene包含一个大小为x = 100,y = 100,宽度= 250,高度= 150的填充矩形) Before clearing

清除后 (清除区域x = 180,y = 150,宽度= 250,高度= 150) After clearing

提前致谢

0 个答案:

没有答案