模式间切换
模式可让你在编辑项目和源文件、设计应用程序用户界面、配置项目以便构建和运行,以及调试或分析源代码等任务之间快速切换。
在模式间切换
- 选择模式选择器上的图标。
- 使用相应的键盘快捷键。
模式 | 键盘快捷键 | 用途 | 更多信息 | |
---|---|---|---|---|
![]() | ||||
Welcome | Ctrl+1 | 打开项目、教程和示例。 | 用户界面 | |
Edit | Ctrl+2 | 编辑项目和源文件。 | 编辑模式 | |
Design | Ctrl+3 | 设计和开发应用程序用户界面。此模式适用于用户界面文件。 | 设计用户界面 | |
Debug | Ctrl+4 | 调试时检查应用程序的状态,或使用代码分析工具检测内存泄漏和代码剖析。 | 调试 | |
Projects | Ctrl+5 | 配置如何构建和运行项目。该模式在项目打开时可用。 | 配置项目 | |
Extensions | Ctrl+6 | 从计算机或网络加载Qt Creator 扩展程序。 | 加载扩展 | |
Help | Ctrl+7 | 阅读文档。 | 获取帮助 |
Qt Creator 中的某些操作会触发模式更改。例如,选择Debug >Start Debugging >Start Debugging of Startup Project 会自动切换到Debug 模式。
隐藏和显示模式
要在模式选择器中隐藏和显示模式并节省显示空间,请访问View >Modes :
- 要隐藏模式选择器,请选择Hidden 。
- 要在模式选择器上只显示图标,请选择Icons Only 。
- 要隐藏不使用的模式,请清除Show <Mode> 复选框。
您可以使用键盘快捷键切换到隐藏模式。
Copyright © The Qt Company Ltd. and other contributors. 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.