QT Learning Notes-more advanced text editor-perfecting the first version of-gif animation

Source: Internet
Author: User
Tags qt designer

Most browsers now have an action icon, and now we're labeling the browser.

Several ICO icons were found on the web. Now take it directly.

Create a resource file first.

Right-click on the project name, select Add New and then select Qt Resource file

Then enter the name, click Add to the project can be seen more than one QRC file.

And in the *.pro will automatically add a RESOURCES + = RES.QRC.

Put the picture in a folder of image and copy it to the source code directory.

Then double-click RES.QRC, add a prefix first, and then add File.

Then, go back to the UI editing interface.

Follow the edit.

With the icon you can drag the following tools directly into the toolbar.

Add a background picture for the Edit text box. right mouse button on the text box, select Change StyleSheet and then select Border-image, you can.

In order to implement click on the software will pop up a dialog box requirements. First, a new QT Designer from Class is created in the project. The name here is about. Generates files such as About.cpp about.h About.ui

The custom slots are written in the following way and need to include the header file #include "About.h".

GIF animations can also be displayed.

QT Learning Notes-more advanced text editor-perfecting the first version of-gif animation

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.