How QT and QT Designer join a resource file

Source: Internet
Author: User
Tags qt designer

This experience is mainly the author of the development of the QT program in the development of the problems encountered, and now share to everyone, mainly in QT embedded like resource files.

Please leave a message if you have any questions.

Tools/Materials
    • Qt Designer

    • Qt Open Source 4.8.5

Method/Step
    1. In QT Designer, if you want to add some of the graphic symbols, icons and other resources when you design the UI interface, you need to write the QRC file in the QT development directory.

    2. The QRC file is a file that is similar to XML format and can be created manually.

      First, wear a txt text, and then type the format as shown. Add the resource file you want, and then modify the file suffix to. qrc.

    3. The first thing to do is to open the QT designer and then open the resource manager.

    4. Select the location of the QRC file you created.

    5. When you open it, you can load the photo file you want, and click the button to edit the resource.

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

How QT and QT Designer join a resource file

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.