【问题标题】:How to start an Android project using QT 5? [duplicate]如何使用 QT 5 启动 Android 项目? [复制]
【发布时间】:2015-05-31 01:34:27
【问题描述】:

我正在为 android 启动 Qt 编程,但无法将项目编译为 android!如何使用 Qt Studio 启动 Android 项目?

我启动了 QT Studio 并创建了一个新项目。在项目信息中:

支持的平台:桌面 Android”

  • 但我无法编译 APK 文件。这是如何工作的?
  • Qt for Visual Studio 使用起来更简单吗?(我很熟悉)

【问题讨论】:

标签: android qt apk


【解决方案1】:

您所说的启动一个 android 项目是什么意思?如果您正在尝试将现有项目编译到 android,或者如果您正在尝试开发跨平台应用程序,则可以使用 Qt for Android,但如果您的应用程序仅针对 android,则在使用 Qt 之前只需考虑 100 次。

这些链接可能会帮助您开始使用 Qt for android。

Getting Started with Qt for Android

Build and deploy Qt apps to Android using Qt 5.1 on Windows(有点旧,但构建步骤相同)

【讨论】:

  • 我想在未来开始为 android 和可能的 IOS 和 Windows phone 部署应用程序。你的意思是 Qt 对于 android 开发来说是一个糟糕的选择吗?它比使用纯 C++ 慢吗?好像还可以
  • 选择合适的平台没有直接的肯定答案。我只是想让你强调,如果你只为 Android 部署 Qt,那么在 Android 上使用 Qt 是不值得的。正如您所说,您计划将其交叉编译到其他几个平台,Qt 是一个很好的选择。根据我的经验,Qt for android 非常快,但它构建的大小比普通的 Android SDK 大得多。
猜你喜欢
  • 2014-05-28
  • 1970-01-01
  • 2019-02-03
  • 2018-12-27
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2015-05-16
相关资源
最近更新 更多