QGraphicsView原始坐标系,如下图
通过使用 setTransform(QTransform::fromScale(-1, 1));可以将x坐标系变为由大到小(y轴变化同理,可改为QTransform::fromScale(1, -1))
QGraphicsView原始坐标系,如下图
通过使用 setTransform(QTransform::fromScale(-1, 1));可以将x坐标系变为由大到小(y轴变化同理,可改为QTransform::fromScale(1, -1))