问题 I want to know how to access the paths of files in the qrc file in order to use them as strings in an array. An example of qrc file is: <!DOCTYPE RCC><RCC version="1.0"> <qresource prefix=""> <file>images/1.jpg</file> <file>images/2.jpg</file> <file>images/3.jpg</file> <file>images/4.jpg</file> </qresource> </RCC> I want to use it in the following manner: for(int i=0;i<4;i++) { path=image_path[i]; } where path is an qlist that can be later used for accessing the respective images. 回答1: There