Install Qt5 (1) and install qt5
Qt4.8 was installed before zookeeper, but a problem persists. I want to add an ICon in front of each item in the menu. The QAction is used for menu entries, but the ICon icons used by QAction cannot be displayed, after running, the icon is left blank, but the icon cannot be displayed. at first, I thought the implementation of my own code was wrong. So I tried both methods of adding images to QAction. later, I put the source code on the student master's machine to run it, and the effect can be achieved. that is, there is a problem with Qt installation. so I uninstalled Qt and re-installed Qt5.
1. qt5 is easy to install. download it from the official Qt website. run the installation file, and then chmod gives it executable permissions to execute sudo. /run it in the file name to enter the graphical installation interface. The installation is complete.
Specific process can refer to this tutorial: http://jingyan.baidu.com/article/851fbc37c235233e1f15ab30.html
2. after the installation is complete, you will find that you still cannot use qmake. At this time, you need to create a soft link to the bin/qmake under the Qt5 installation directory. first, find the qmake in the Qt5 installation directory, determine the path, and then create a soft link in/usr/bin/. Obtain the new name by yourself. Here, obtain qmake.
Sudo ln-s/opt/Qt5.4.2/5.4/gcc_64/bin/qmake
Then qmake can be used normally.