QT_ANDROID_APP_ICON

Androidアプリのアイコンリソース名。

このプロパティは Qt 6.9 で導入されました。

注:この プロパティは、Androidプラットフォームを対象とする場合にのみ使用されます。

アプリのアイコン名を、Androidのドローアブルまたはミップマップへの参照として指定します。これは、AndroidManifest.xml ファイルにプレースホルダーが含まれている場合、またはAndroidManifest.xml がQtによって管理されている場合にのみ機能します。

<application
    ...
    android:icon="-- %%INSERT_APP_ICON%% --"
    ...
>

このプロパティは次のように使用できます:

set_target_properties(${target} PROPERTIES
    QT_ANDROID_APP_ICON "@mipmap/ic_launcher"
)

または、ドローアブルを使用する場合は:

set_target_properties(${target} PROPERTIES
    QT_ANDROID_APP_ICON "@drawable/ic_launcher"
)

qt_android_generate_deployment_settings()も参照してください 。

© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.