Reputation: 1188
I'm porting a small Qt
application to the Android
. I am using Qt Creator.
I have a resource file with some images. The question is how to add these files to the android APK package.
Another question is how to access them from Qt
?
Can I use something like:
QIcon actions_ok = QIcon(RES_PATH + "check.png")?
Upvotes: 1
Views: 3416
Reputation: 54810
You'll need to add the images to your assets
folder, and then access them using the following URI:
file:///android_asset/check.png
Upvotes: 3