Qt Widgets Designer的编辑模式
Qt Widgets Designer 提供了四种编辑模式:控件编辑模式、信号与插槽编辑模式、伙伴编辑模式以及标签顺序编辑模式。在使用Qt Widgets Designer 时,您始终处于这四种模式之一。要在模式之间切换,只需从“编辑”菜单或工具栏中选择即可。下表对这些模式进行了更详细的说明。
| 编辑模式 | |
|---|---|
![]() | 在“编辑”模式下,我们可以更改表单的外观、添加布局以及编辑每个控件的属性。要切换到此模式,请按F3 键。这是Qt Widgets Designer 的默认模式。 |
![]() | 在“信号与槽”模式下,我们可以使用 Qt 的信号与槽机制将控件相互连接。要切换到此模式,请按F4 键。 |
![]() | 在“伙伴编辑模式”下,可以将伙伴控件分配给标签控件,以帮助其正确处理键盘焦点。 |
![]() | 在“Tab 顺序编辑模式”下,我们可以设置控件接收键盘焦点的顺序。 |
© 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.



