查看输出

输出视图可显示多个来源的输出,如构建过程中遇到的错误和警告列表、编译器的详细输出、程序执行时的状态、调试输出或搜索结果。

输出视图

可以在所有模式下打开输出视图

  • 选择输出视图。
  • 选择View >Output 。菜单项还会显示您可以使用的键盘快捷键
  • 选择AltmacOS 上为Cmd)和视图编号。
  • 选择输出视图菜单 ,然后选择要打开的视图。

要最大化打开的输出视图,请选择最大化 (Maximize) 或Alt+Shift+9

要增大或减小输出文本大小,请选择放大 (Zoom In) 或Ctrl++放大 (Zoom Out) 或Ctrl + -。某些输出视图无法缩放。

更改文本编码

如果输出中的文本显示不正确,Qt Creator 可能使用了与生成输出的工具不同的编解码器。要指定要使用的编解码器,请选择首选项>Environment >Interface ,然后在Text codec for tools 字段中选择编解码器。

环境偏好设置中的界面选项卡

查找和过滤输出

要在输出中搜索,请在视图处于活动状态时选择Ctrl+F。在Find 字段中输入搜索条件。有关更多信息,请参阅在当前文件中搜索

要过滤输出,请在Filter 字段中输入字符串。

要指定过滤选项,请选择筛选选项菜单 按钮。可以使用正则表达式或大小写敏感性过滤输出。选择Show Non-matching Lines 可隐藏符合筛选条件的行。

某些输出视图不支持查找和过滤。

将输出保存为文件

要将输出保存为文本文件,请在上下文菜单中选择Save Contents

要将输出复制到临时文件,请选择Copy Contents to Scratch Buffer

另请参阅 "输出视图"和 "写笔记"。

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.