QGraphicsView的图像相关内容基本是需要调用scene()进行操作
例如update()需要变成scene()->update()
绘图的时候QPainter painter(this)变成QPainter painter(this->viewport())
QGraphicsView的图像相关内容基本是需要调用scene()进行操作
例如update()需要变成scene()->update()
绘图的时候QPainter painter(this)变成QPainter painter(this->viewport())