重置Qt Creator 设置

要重置所有Qt Creator 设置,请删除它创建的设置文件:

  • QtCreator.db
  • QtCreator.ini
  • qtversion.xml
  • qtcreator

上述文件和目录的位置取决于平台:

  • 在 Linux 和其他 Unix 平台上,请访问~/.config/QtProject~/.local/share/data/QtProject/qtcreator
  • 在 macOS 上,请查看~/.config/QtProject~/Library/Application Support/QtProject/Qt Creator.
  • 在 Windows 上,请查看%appdata%\QtProject%localappdata%\QtProject

要在重置设置前检查设置是否导致问题,可从命令行启动Qt Creator 并带选项。

覆盖默认设置路径

要覆盖存储用户设置的默认路径,请输入 :

qtcreator -settingspath <path>

要覆盖读取与用户无关的设置(例如安装程序写入的设置)的默认路径,请输入::

qtcreator -installsettingspath <path>

使用临时清洁设置启动Qt Creator

要使用退出Qt Creator 时删除的干净设置,请输入: 使用临时干净设置启动 :

qtcreator -tcs

另请参阅 从命令行运行Qt Creator

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.