Where does QtCreator store data about Kits?

2020-05-26 16:56发布

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?

标签: qt-creator
1条回答
够拽才男人
2楼-- · 2020-05-26 17:31

The SDK stores a set of files in $CREATOR_INSTALL_DIR/share/QtProject/qtcreator. These are used by everybody using this instance of creator.

The user-specific files are in your home directory in ~/.config/QtProject/qtcreator (or %APPDATA%/QtProject/qtcreator on windows, don't know about Mac).

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.

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.

查看更多
登录 后发表回答