问题
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")?
回答1:
You'll need to add the images to your assets
folder, and then access them using the following URI:
file:///android_asset/check.png
来源:https://stackoverflow.com/questions/11071161/how-to-add-qt-resources-to-android-apk-file