QtCreator 在哪里存储有关套件的数据? [英] Where does QtCreator store data about Kits?

查看:43
本文介绍了QtCreator 在哪里存储有关套件的数据?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对于特定项目,QtCreator 会存储有关每个工具包的构建配置信息a> 该项目在其 *.creator.user 文件中使用.有些套件会自动检测;也可以通过转到 Options-->Build & 手动定义套件.运行--> Kits 并选择Add.但是,我无法弄清楚 QtCreator 实际存储有关可用套件的信息的位置.删除所有使用特定工具包的 *.creator.user 文件不会从工具包列表中删除工具包,而且我找不到我在任何地方定义的任何自定义工具包的名称在我计算机上的 Qt 文件夹中(我使用的是 Qt5 RC2,所以我正在查看 Qt5/QtCommercial5.0.0-rc2/Tools/QtCreator/share 及其子目录).有什么建议吗?

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆