平移和缩放
在实时预览中,您可以通过平移和缩放来聚焦于转换后设计的特定部分。
选择“
”以查看可用选项的键盘快捷键。

实时预览中的平移和缩放操作。
在转换后的设计中移动
要平移并移动已转换的设计以检查不同区域,请按空格键并拖动(
)。
放大与缩小
要将视图缩放至转换后设计的实际尺寸,或将设计调整为适合屏幕大小:
- 选择“
”以打开“Display resolution settings ”。 - 在“View mode ”中,选择“Actual size ”或“Fit to screen ”。

在实时预览中查看视图模式设置。
若要放大以查看细微细节和组件边界,请对转换后的设计进行放大:
- 选择“
”(Zoom in )。 - 按住Ctrl 键(macOS 上为Cmd 键),并向下滚动鼠标滚轮。
若要降低放大倍率以查看整体布局和元件之间的关系,请缩小已转换的设计:
- 选择“
”(Zoom out )。 - 按住Ctrl 键(macOS 上为Cmd 键),并向上滚动鼠标滚轮。
要重置平移和缩放设置以准确显示尺寸:
- 选择“
”(Reset to initial view )。 - 按Ctrl + 0(或 macOS 上的Cmd + 0)。
以不同屏幕分辨率查看设计
要查看设计在不同尺寸屏幕上的显示效果:
- 选择“Show viewport overlay for selected screen resolution ”。
- 在“Display resolution ”中,选择屏幕尺寸。

在实时预览中显示分辨率设置。
若要设置自定义屏幕尺寸,请选择“Custom size ”,然后指定屏幕的宽度和高度。在设置数值时,切换“Sync width and height ”可解锁或锁定视口叠加层的宽高比。
注意: 显示视口叠加层时,无法检查设计。
© 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.