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