Qt Creator creates projects and adds image resources

Table of contents

1. Create a project

2. Put the required pictures

3. Open the project again

4. Run the project


1. Create a project

 

 

2. Put the required pictures

Create a new folder in the created project and put the required pictures in it

Right click on the project and click add new

 

 

Go to the folder of the pictures added in the first step and load all the pictures in

Then go to the ui file and add it.

 3. Open the project again

Method ① Go to the project and find the pro file, double-click it directly, or right-click and select qt creator to open it

Method ② First open the qt creator software, open and then go to the project to find the pro file, click it, and click the open button

4. Run the project

When running a project, just click the arrow in the lower left corner.

However, if multiple projects are opened at the same time, the latest opened project will be run by default. If you want to select a specified project to run, you need to activate it, as shown in the figure below. (Or you can open multiple qt software in the background, and each software only opens and runs one project) 

 

Guess you like

Origin blog.csdn.net/m0_63172128/article/details/133171074