仿射变换
演示QPainter 中仿射变换的工作原理。

对使用QPainter 绘制的任何类型的图形均可进行变换。用于显示矢量图形、图像和文本的变换可通过以下方式进行调整:
- 拖动每个图形中央的红色圆圈,可将其移动到新位置。
- 拖动偏移后的红色圆圈,可使当前图形围绕中心圆旋转。旋转角度也可通过Rotate 的滑块进行控制。
- 缩放可通过“Scale ”滑块控制。
- 每个图形均可通过“Shear ”滑块进行剪切。
© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.