Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Qt: Setting the app-icon on Android and iOS

I'm developing an App that is supposed to run on
Windows, MacOSX, Android, and iOS.

I found out how to set the icon on Windows and Mac, but how does it work on Android and iOS?

Thanks for reading!

EDIT: I do not use Nessecitas SDK. There is no AndroidManifest.xml in my project folder. However, there is a folder in the same directory as my project-folder called "build-myProjectName-Android_f_r_armeabi_GCC_4_8_Qt_5_3_1-Release", which contains a folder "android-build", which contains a manifest.

like image 912
PH-zero Avatar asked Oct 08 '14 09:10

PH-zero


People also ask

How do I change my Qt app icon?

This can be done using Microsoft Visual Studio: Select File >> New, and choose the Icon File. Note: You need not load the application into the Visual Studio IDE as you are using the icon editor only.

How do I change the app icon in Android Studio?

You could right click on the res directory and choose New > Image Asset. Or you can click on the Resource Manager tab, click the + icon, and select Image Asset.

How do I create an icon for my Android app?

Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project. Step 2 − Further follow the path to reach the desired folder to add icon (app → res → mipmap). Step 3 - Add you app icon. You can just simply copy and paste the image in mipmap folder.

Does Qt work on iOS?

Qt's iOS port allows you to run Qt applications on iOS devices, such as iPhones, iPads, and iPod Touches.


2 Answers

You should create an Android manifest file and edit it in Qt Creator.

Since Qt 5.4 along with QtCreator 3.3.0, you should 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.

In previous versions of Qt and Qt Creator you should go to Projects->Run->Deploy and select Create AndroidManifest.xml button.

like image 83
Nejat Avatar answered Oct 01 '22 23:10

Nejat


in your android manifest there is a line android:icon="@drawable/launcher_icon" set your icon name here and thats it while in iOS you can use image assets to easily drag and drop icons and splashscreens

like image 42
Elgert Avatar answered Oct 01 '22 22:10

Elgert