本页内容

重置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.