Qt Widgets Designer编辑模式

Qt Widgets Designer 提供四种编辑模式:小工具编辑模式信号和插槽编辑模式好友编辑模式制表符顺序编辑模式。使用 时,您将始终处于这四种模式之一。要在不同模式间切换,只需从 "Qt Widgets Designer编辑 "菜单或工具栏中选择即可。下表详细介绍了这些模式。

编辑模式
编辑模式下,我们可以更改表单的外观、添加布局和编辑每个部件的属性。要切换到该模式,请按F3 键。这是Qt Widgets Designer 的默认模式。
信号和插槽模式下,我们可以使用 Qt 的信号和插槽机制将 Widget 连接在一起。要切换到该模式,请按F4
好友编辑模式(Buddy Editing Mode)下,好友部件可以分配给标签部件,以帮助它们正确处理键盘焦点。
选项卡顺序编辑模式下,我们可以设置部件接收键盘焦点的顺序。

© 2025 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.