Where does QtCreator save its settings?

2020-01-26 07:29发布

I would like to locate the folder where QtCreator save all its settings (text editor preferences, syntax highlighting, etc.) so that I can back them up. Does anybody know where they are?

标签: qt qt-creator
3条回答
我命由我不由天
2楼-- · 2020-01-26 08:06

See QtCreator Quick Tour.

Qt Creator creates the following files and directories:

QtCreator.db
QtCreator.ini
qtversion.xml
toolChains.xml
qtcreator
qtc-debugging-helper
qtc-qmldump

The location depends on the platform. On Linux and other Unix platforms, the files are located in ~/.config/QtProject and ~/.local/share/data/QtProject/qtcreator.

On Mac OS, the files are located in ~/.config/QtProject and ~/Library/Application Support/QtProject/Qt Creator.

On Windows in general, the files are located in %APPDATA%\QtProject and %LOCALAPPDATA%\QtProject. Yes, you can use these paths in Explorer and in various command line shells. The environment variables (between the %-signs) are expanded automatically. If you need the concrete paths, see below.

On Windows 10, 8, Vista and 7, the files are located in <drive>:\Users\<username>\AppData\Roaming\QtProject and <drive>:\Users\<username>\AppData\Local\QtProject.

On Windows XP, the files are located in <drive>:\Documents and Settings\<username>\Application Data\QtProject and <drive>:\Documents and Settings\<username>\Local Settings\Application Data\QtProject.

查看更多
女痞
3楼-- · 2020-01-26 08:17

Starting from version 2.7 it's %APPDATA%/Roaming/QtProject on Windows 7 and 8.

查看更多
何必那么认真
4楼-- · 2020-01-26 08:31

To complete Bill's answer, Qt Creator might also create files in \QtCreator\bin\ - this is where it's going to save all your projects by default.

查看更多
登录 后发表回答