Take adding image resources as an example
Right-click the project name (not the top name) and click Add Existing File
Although this method is added to the project, it cannot be referenced in the UI design interface. The main reason may be that the file is not put into the project resource file. The difference can be seen in the following way.
Click to add new file
Select qt resource file, click Select,
and then get a .qrc resource file through the following settings.
Right-click the resource file. The first type of added file is in the root directory of the qrc file. The second type can edit the path by yourself.