After downloading the Qt-opensource-linux-x64-5.3.0.run, install the steps:
1. Enabling it to have executive authority
sudo chmod +x qt-opensource-linux-x64-5.3.0.run
2. Installation
sudo./qt-opensource-linux-x64-5.3.0.run
Next is the graphical interface installation, all by default. The reference screenshot is as follows:
Installation complete.
3. Configure the system path
Add in/ETC/BASH.BASHRC:
Export qtdir=/opt/qt5.3.0/5.3/gcc_64
Export path= $QTDIR/bin: $PATH
Export ld_library_path= $QTDIR/lib: $LD _library_path
Save, execute:
Source/etc/bash.bashrc
You can see if you added success:
Echo $PATH
The Qmake path after installation is:/opt/qt5.3.0/5.3/gcc_64/bin
Note: Although the QT SDK is installed, QT Creator does not automatically find the location of the QT SDK as it does under Windows. You need to manually configure this path. Method:
Start qt Creator→tools→options→build & Run, right click on the QT Versions tab. Then click on the "Add ..." button in the upper-right corner to add the QT SDK and a "Select a qmake executable" window to browse to the Qmake location (/opt/qt5.3.0/5.3/gcc_64/bin) where the QT SDK was previously installed. Similar to the following:
"Open".
Reference: http://blog.csdn.net/arackethis/article/details/42837675