Install Qt5 (1) and install qt5

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.