Important: Please read the Qt Code of Conduct -

[SOLVED] How to tell QtCreator where to store .pro.user settings? For development with different versions

  • We develop our project on both Mac and Linux and have different versions of QtCreator installed. At the moment it is 2.4.0 on a Mac and 2.1.0 on Linux. Upgrading the Linux version is possible, but we'd prefer to keep it the way it is since QtCreator is taken with the rest of Qt from some proper package verified for our Linux distribution.

    Our code builds just fine from both command line and QtCreator on both system, but for runtime we need to set up a couple of different variables for Mac and Linux: DYLD_LIBRARY_PATH for Mac and LD_LIBRARY_PATH on Linux. That should coexist nicely in the project settings as these are different variables, but..

    Whenever older QtCreator opens the project, it deletes the custom settings.

    So I was thinking about making two nearly empty project files: and
    hoping that QtCreator will store settings in and, but.. it still stores all settings in

    How to change it?
    Or what would be the proper way to get different runtime variables for different platforms?

  • Oups. Not sure what I was doing. Everything seems to work fine now. Qt creator uses .pro specific settings

  • Moderators

    Creator should just append ".user" to whatever project file you opened.

    Since you should not share .user files you should not be seeing the issue you are having;-)

    user files only ever work with exactly the one instance of Qt Creator that originally created it. You should never share them! Creator will even pop up a warning when opening a .user file that was created by another instance. So do not check the .user file into version control.

  • Indeed. Just don't put them in version control (just like you don't put any other generated files in version control), and you're good. You are using version control, arn't you?

Log in to reply