平移->旋转->反向平移
QPointF data;
QPointF origin;
qreal degrees = 45.0;
QMatrix transform;
transform = transform.translate(origin.x(),origin.y()).rotate(degrees).translate(-origin.x(),-origin.y());
data = transform.map(data);
平移->旋转->反向平移
QPointF data;
QPointF origin;
qreal degrees = 45.0;
QMatrix transform;
transform = transform.translate(origin.x(),origin.y()).rotate(degrees).translate(-origin.x(),-origin.y());
data = transform.map(data);