Qt for android: change the application icon

2019-04-21 07:38发布

How would I change the icon of Qt project targeted for android so that the launcher of application has this icon?

3条回答
唯我独甜
2楼-- · 2019-04-21 07:58

You should create an Android manifest file and edit it in Qt Creator. Go to Projects > Build Android APK > Details

Now Select Create Templates to create the manifest file and to open it in editor :

enter image description here

As shown in the picture, you can set three versions of icons for your application with low, medium, and high DPI values, from left to right.

This new way of making an android manifest file is available since Qt 5.4 along Qt Creator 3.3. There used to be a Create AndroidManifest.xml button in Projects->Run->Deploy in previous versions.

查看更多
看我几分像从前
3楼-- · 2019-04-21 08:04

Look at the this article about anatomy of a Qt 5 for Android application. You should attach to your project file AndroidManifest.xml, where you can define icon of application.

查看更多
Root(大扎)
4楼-- · 2019-04-21 08:08

Open Run settings of your project and select Create AndroidManifest.xml, then you'll be able to modify the manifest which should include stuff like the icon.

Refer to this:http://qt-project.org/doc/qtcreator-3.2/creator-deploying-android.html

查看更多
登录 后发表回答