本页内容

在模式之间切换

通过模式,您可以快速在各项任务之间切换,例如编辑项目和源文件、设计应用程序用户界面、构建和运行项目,以及调试或分析源代码。

要在不同模式之间切换:

拖动模式选择器上的模式图标以调整其位置。

模式键盘快捷键用途阅读更多
模式选择器
WelcomeCtrl+1打开项目、教程和示例。调整用户界面
EditCtrl+2编辑项目和源文件。编辑代码
DesignCtrl+3设计和开发应用程序用户界面。此模式适用于 UI 文件。设计用户界面
DebugCtrl+4在调试时检查应用程序的状态,或使用代码分析工具检测内存泄漏并分析代码性能。调试
ProjectsCtrl+5配置项目的构建和运行方式。此模式在项目打开时可用。构建和运行项目
ExtensionsCtrl+6从计算机或网络加载Qt Creator 扩展。激活扩展
HelpCtrl+7阅读文档。获取帮助
PreferencesCtrl+8设置全局首选项。查找首选项

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.