QtCreator 在哪里存储有关套件的数据? [英] Where does QtCreator store data about Kits?
问题描述
For a particular project, QtCreator stores information about the build configurations for each kit that project uses in its *.creator.user
file. Some kits are automatically detected; kits can also be manually defined by going to Options-->Build & Run-->Kits
and selecting Add
. However, I can't figure out where QtCreator actually stores information about available kits. Deleting all *.creator.user
files that make use of a particular kit does not remove the kit from the list of kits, and I can't find the names of any custom kits I've defined anywhere in the Qt folder on my computer (I'm using Qt5 RC2, so I'm looking in Qt5/QtCommercial5.0.0-rc2/Tools/QtCreator/share
and subdirectories thereof). Any suggestions?
推荐答案
SDK 在 $CREATOR_INSTALL_DIR/share/QtProject/qtcreator
中存储了一组文件.使用此创建者实例的每个人都会使用这些.
The SDK stores a set of files in $CREATOR_INSTALL_DIR/share/QtProject/qtcreator
. These are used by everybody using this instance of creator.
用户特定的文件位于 ~/.config/QtProject/qtcreator
(或 %APPDATA%/QtProject/qtcreator
在 Windows 上,不要在您的主目录中)不知道 Mac).
The user-specific files are in your home directory in ~/.config/QtProject/qtcreator
(or %APPDATA%/QtProject/qtcreator
on windows, don't know about Mac).
这些工具包在一个名为 profiles.xml
的文件中(我首先将这整个东西称为配置文件,但因为它与 .pro
-files qmake
使用它被重命名).工具链在 toolchains.xml
中,Qt 版本在 qtversions.xml
中.
The kits are in a file called profiles.xml
(I first called this whole thing profiles, but since that conflicts with the .pro
-files qmake
uses it got renamed). Toolchains are in toolchains.xml
, Qt versions in qtversions.xml
.
.user
文件仅包含与其相关的项目的数据.基本上,在项目"模式下设置的所有内容都会在 .user
文件中结束.
The .user
-files only contain data for the project it is related to. Basically everything set in "Projects" mode ends up in the .user
file.
这篇关于QtCreator 在哪里存储有关套件的数据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!