我想是让像画图、word、visio等一样,有灰色区域,有编辑区域的背景;
而QGraphicsScene的setBackgroundBrush()会被QGraphicsView的setBackgroundBrush()背景所覆盖,无法做到像画图那样的啊。
我想让QGraphicsView的左上角的坐标为QGraphicsScene的(0,0)点,可是只有centerOn(0,0);函数,
当我的QGraphicsScene区域小于QGraphicsView区域时,左上角的坐标总是负的啊,所以想显示出来哪里是QGraphicsScene的(0,0)点,所以才想要不同的颜色显示。