- sudo mkdir opt/Qt (notice Q has to be uppercase)
- Download open source Qt run file from official site
- execute .run file
- install at opt/Qt
Have more than 1 versions of qt?
sudo update-alternatives –install /usr/bin/qmake qmake /opt/Qt/ 10
Repeat for each version but with a different number.
To select which version to use as default, run:
sudo update-alternatives –config qmake