Important: Please read the Qt Code of Conduct -

With which Qtcreator to "link with" ?

  • I think I have asked this before. but I am not sure - senior moment.
    I have "install" using Ubuntu and need to install it again using Qt Install but do not want to have both.

    qs@qs-desktop:~$ sudo find . / -name qtcreator
    find: ‘/run/user/1000/gvfs’: Permission denied

    Here is the GUI dialog


    After "Link with Qt "


    How do I find "Qt installation path ?"
    Qtcreator was installed using "sudo apt install qtcreator" and no installation path was selected - only Ubuntu default.

    With which one of the above "qtcreator" file should I browse / link with AND WHY ?

  • Moderators

    Paths look like Qt Creator is indeed installed through apt get. So:

    sudo apt remove qtcreator

    Should clean it up for you. Then you can install using Qt online installer, preferrably without root permissions.

  • @sierdzio OK that will work but I still like to know with which copy of "qtcreator" to "link with" to get correct "kits" to work.

  • Moderators

    @AnneRanch said in With which Qtcreator to "link with" ?:

    @sierdzio OK that will work but I still like to know with which copy of "qtcreator" to "link with" to get correct "kits" to work.

    I don't understand the question, sorry.

    If I get it right, you want to have one copy of Qt Creator - in such case that will be the one to "link" to. But when you install through the Qt installer, the Qt version you choose will be linked to Qt Creator automatically. Any other Qt versions (compiled manually or installed elsewhere) need to be added manually in Qt Creator options.

  • Qt Creator is just the IDE and is independent of the Qt libraries (other than Qt Creator is itself a Qt application and needs Qt runtime libraries). You don't link against Qt Creator. You link against the Qt libraries. It is perfectly fine to have different Qt library versions installed, either major or minor versions. As long as they are in different directories, you are fine. For each kit you just select the corresponding qmake inside the install directory of the Qt library version. BTW: Never move/copy/rename the install location of your libraries. qmake will have that path baked in. I believe there are tricks around that, but the advice is: just don't do it.

    Each installation of Qt Creator can be configured to work with any Qt library. Two installations of Qt Creator might even share the kits configuration.

Log in to reply