Qt5.12.6 + VS2019 add image resource file

Record the process of adding image resources in Qt5.12.6 + VS2019

  1. Double-click the ".qrc" file in the Resource Files directory in the project directory
    Insert picture description here

  2. Click "Add" and select "Add Files"
    Insert picture description here

  3. Select the picture you want to add in the pop-up dialog box, you can see the added picture resource
    Insert picture description here

  4. When using, click on the picture and you can see the resource path in the Resource URL column.
    Insert picture description here
    If there is any infringement, please contact to delete it. If there is an error, please correct me, thank you

Guess you like

Origin blog.csdn.net/xiao_ma_nong_last/article/details/110942800