QT_ANDROID_部署依赖项

该属性是在 Qt 6.0 中引入的。

注意:该 属性目前处于技术预览阶段,未来版本中可能会发生变化。

注意: 仅当目标平台为 Android 时,才会使用此 属性。

默认情况下,androiddeployqt会检测应用程序的依赖项。但是,由于无法检测到运行时插件的使用情况,可能会出现误报,因为您的应用程序可能依赖于任何作为潜在依赖项的插件。 若要尽可能减小APK 的大小,可通过此属性覆盖自动检测功能。该属性应包含所有需要包含的Qt文件的列表,路径应相对于Qt安装根目录。

注意:仅会 包含通过此变量指定的 Qt 文件。 若未能包含所有正确的文件,可能会导致程序崩溃。此外,确保文件按正确的加载顺序列出也至关重要。该变量提供了一种完全覆盖自动检测的方法,因此如果某个库在其依赖项之前被列出,则在某些设备上将无法加载。

另请参阅 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.