本文介绍了适用于Android的Qt:更改应用程序图标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将如何更改针对Android的Qt项目的图标,以使应用程序的启动器具有此图标?

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

推荐答案

您应该创建一个Android清单文件,然后在Qt Creator中对其进行编辑.转到项目>构建Android APK>详细信息

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 :

如图所示,您可以为应用程序从左到右设置DPI值分别为低,中和高的三个版本.

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.

自Qt 5.4沿Qt Creator 3.3以来,这种制作android清单文件的新方法已可用.以前版本的 Projects-> Run-> Deploy 中曾经有一个 Create AndroidManifest.xml 按钮.

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.

这篇关于适用于Android的Qt:更改应用程序图标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-30 06:02