user1256821
user1256821

Reputation: 1188

How to add qt resources to android APK file?

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

Answers (1)

Abdullah Jibaly
Abdullah Jibaly

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

Related Questions