To add a new .qrc file to our project, go to File | New File or Project. Then, select Qt under the Files and Classes category and select Qt Resources File. After that, give it a name (that is, resources) and click the Next button followed by the Finish button. The .qrc file will now be created and automatically opened by Qt Creator. You don't have to edit the .qrc file directly in XML format as Qt Creator provides you the user interface to manage your resources.
To add images and icons to your project, you need to make sure that the images and icons are being placed in your project's directory. While the .qrc file is opened in Qt Creator, click the Add button, followed by Add Prefix button. The prefix is used to categorize your ...