阅读 Qt 文档
要打开Qt或 Qt for Python 文档(取决于编辑器中打开的文件类型),请访问Command Palette 并选择“Qt: Documentation: Open homepage ”。
文档将在 Visual Studio Code 的 Simple Browser 中打开。若要在其他浏览器中打开,请在Qt 设置中选择Open Online Documentation in External Browser 。
查找文档
要查找编辑器中选定单词(例如类名或函数名)的相关文档:
- 在编辑器中选中一个单词。
- 转到Command Palette ,然后选择Qt: Documentation: Search for the current word 。

Qt 文档将在 Simple Browser 中打开。
要在文档中查找任意文本:
- 访问Command Palette ,然后选择Qt: Documentation: Search 。
- 输入搜索词并按Enter 键。
另请参阅 Qt 设置。
© 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.