

Rename the symlink file: sudo mv /usr/lib/x86_64-linux-gnu/qt-default/qtchooser/nf /usr/lib/x86_64-linux-gnu/qt-default/qtchooser/nf_origĬreate a new target configuration file (with any name): gksudo gedit /usr/share/qtchooser/my_Qt_5.10.1_Desktop_gcc_圆4.conf And also create the new files in the default locations (for consistency). I would suggest to keep both original symlink file and its target in place (in case you want to recover the original configuration). Here is an example for my system (Ubuntu 17.10 圆4, Qt 5.10.1). If you want to make your changes permanent, you need to modify the /usr/lib/x86_64-linux-gnu/qt-default/qtchooser/nf file, which is a symlink to. There is a bug with qtchooser on Ubuntu 13.04 and 13.10 which seem to affect the way Qt applications detect different Qt versions, see. Also see man qtchooser and the qtX-default packages on Debian based systems.

The real binaries are qmake-qt4, qmake-qt5 etc.
#Does qt creator 5.5 work for qt 4.8 pro#
pro file, but if so it is undocumented (as with quite a lot of qmake variables).Īlso, if you want to build with a specific major version, qmake is usually just symlinked to a binary for the default major version. It may also be possible to set this in the. You could test with something like: QTDIR=/usr/share/qtX qmake -version By default QtCreator sets this to /usr/share/qt4 for me, so setting it to the equivalent path (ie the one where the configuration files are) should make qmake build with a different version. Otherwise, it seems to the QTDIR environmental variable is used to set the Qt version. There should be a drop down box to select from the various installed versions for each configuration. You can set different build configurations there. Never the less, QtCreator is usually quite good at detecting alternative Qt installs, just create a new project and look under the Projects tab on the left. This isn't necessarily Unix/Linux specific, so you are probably better asking this on Stack Overflow.
