Exporting files into the emulator environment in Qt for Symbian
Article Metadata
Tested with
Compatibility
S60 5th Edition
Article
Overview
This code snippet demonstrates how to use the BLD_INF_RULES keyword in a Qt project (.pro) file to export files into the Symbian Emulator.
Note that with the Qt SDK the Emulator is not usually used for debugging. There is a lot more information on deployment to Symbian in Deploying a Qt Application on Symbian.
In the BLD_INF_RULES.prj_exports section, list any files to be copied from the source directories to the directories of the releasables during the building of a component (for more details, see the topic prj_exports in the Symbian Developer's Library).
Qt app project file (.pro)
Using the keyword BLD_INF_RULES you can export files from your development folder into the Qt emulator environment. The following command copies data from the images folder to the C:\S60\devices\S60_5th_Edition_SDK_v0.9\epoc32\winscw\c\Data\images folder. The images folder is the folder in this project file.
symbian: {
BLD_INF_RULES.prj_exports += \
"images\picture1.jpg ..\winscw\c\Data\images\picture1.jpg" \
"images\picture2.jpg ..\winscw\c\Data\images\picture2.jpg" \
"images\picture3.jpg ..\winscw\c\Data\images\picture3.jpg" \
"images\picture4.jpg ..\winscw\c\Data\images\picture4.jpg" \
"images\picture5.jpg ..\winscw\c\Data\images\picture5.jpg"
}
Postconditions
The files are exported into the emulator environment.

