获取帮助
Qt Creator Qt Help 插件与 Qt XML 文档和示例完全集成。
- 要查看文档,请切换到Help 模式。
- 要以工具提示的形式查看 Qt 类或函数的上下文相关帮助,请将鼠标光标移至类或函数上。如果没有帮助,工具提示将显示符号的类型信息。
- 要显示函数签名的工具提示而不管光标在函数调用中的位置,请选择Ctrl+Shift+D。
- 要显示 Qt 类或函数的完整帮助,请选择F1或在上下文菜单中选择Context Help 。文档显示在代码编辑器旁边的视图中,如果垂直空间不够,则显示在全屏Help 模式中。
- 要更改Help 模式下的文档显示方式,请访问首选项>Help 。
下图显示了Edit 模式下的上下文相关帮助。
更改字体
如果帮助 HTML 文件没有使用样式表,可以在首选项>Help >General 中更改字体族、样式和大小。
在Zoom 中设置默认缩放级别。查看帮助页面时,可使用鼠标滚轮缩放页面。要关闭此功能,请清除Enable scroll wheel zooming 。
要关闭抗锯齿功能,请清除Antialias 。
返回编辑器
要在关闭最后一个帮助页面时切换到编辑器上下文,请选择Return to editor on closing the last page 。
选择帮助查看器后台
帮助查看器后台决定了用于显示帮助文件的样式表。建议使用基于 litehtml 的默认帮助查看器后端来查看 Qt 文档。你可以在Viewer backend 中选择其他帮助查看器后端。要使用新的后端,请重新加载帮助页面。
查看函数工具提示
默认隐藏函数工具提示:
- 转到首选项>Text Editor >Behavior 。
- 在Show help tooltips using the mouse 中,选择On Shift+Mouseover 。
按住Shift键仍可查看工具提示。
要使用键盘快捷键查看帮助工具提示,请选择Show help tooltips using keyboard shortcut (Alt) 。
另请参阅 如何:阅读文档。
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.