QT add resource .qrc file (My Sources File image and audio support translation.qm file)

QT add resource .qrc file

We only use QT for the project. Generally, we will use some pictures, sound and light resources. Adding resources to the project can write absolute paths, or add resources to our project. It is also convenient when packaging later.

Proceed as follows:

1. Prepare to add resources

Insert picture description here

2. Confirm the addition and click Finish

Insert picture description here

3. Add resource path

Guess you like

Origin blog.csdn.net/qq_45646951/article/details/108723391