How to add Qt5 to Qt Creator?

10,819

Yes, but not the version of Qt Creator in the archives. Qt 5.0 is compatible only with Qt Creator 2.6.1+. Thankfully, installing Qt Creator 2.6.1 is relatively easy:

  1. Remove the existing version of Qt Creator you have installed:

    sudo apt-get autoremove qtcreator
    
  2. Download the appropriate installer from this page:

  3. cd into the directory that contains the installer you downloaded and run:

    chmod 755 qt-creator-linux-*-opensource-2.6.1.bin
    
  4. Launch the installer:

    sudo ./qt-creator-linux-*-opensource-2.6.1.bin
    
  5. Complete the installer, leaving all settings at their defaults.

If all goes well, you should end up with an icon in your desktop environment's dash or equivalent. You should then be able to use Qt 5.0 with Qt Creator.

Share:
10,819

Related videos on Youtube

int_ua
Author by

int_ua

I dream of a day when settings are written to disk only when changed and software does not freak out when $HOME is read-only.

Updated on September 18, 2022

Comments

  • int_ua
    int_ua almost 2 years

    I've added the Qt5 Daily repository, installed the qt5-meta-full and added /opt/qt5/bin/qmake to Qt Versions. Now I get

    :-1: error: Unknown module(s) in QT: declarative
    

    Is it possible yet to use Qt5 with Qt Creator?

    • Erik Sjölund
      Erik Sjölund about 11 years
      "apt-get install qtquick1-5-dev" makes that specific build error go away, I think
    • jeremiah
      jeremiah over 10 years
      Thanks Erik, that helped me since I got the same error above. (Missing Qt Declarative.)
  • int_ua
    int_ua over 11 years
    Strangely, I still had Qt Creator 2.4 in Dash after this. But running bin/qtcreator from the installation directory launches 2.6.1. Checking it.