qt_android_app_icon

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

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

注意: このプロパティは、Android プラットフォームをターゲットにしている場合にのみ使用されます。

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

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

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

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

または、drawables を使用します:

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

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

© 2025 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.