简体   繁体   English

在没有qml的情况下为Android编写QT应用程序

[英]Writing QT app for Android without qml

I need to write an Android application based on pure QT/C++. 我需要编写一个基于纯QT / C ++的Android应用程序。 However, most of the tutorials on the net seem to use QML. 但是,网上的大多数教程似乎都使用QML。 Even QT Creator's "Quick App" generates QML-based code. 甚至QT Creator的“Quick App”也会生成基于QML的代码。 I am wondering if someone can guide me into creating a simple "Hello World" Android program using just QT. 我想知道是否有人可以引导我使用QT创建一个简单的“Hello World”Android程序。 Or, just point me in the right direction. 或者,只是指出我正确的方向。 Regards. 问候。

You can simply deploy your Qt/C++ application for Android and indeed there is no need to necessarily use QML in a Qt application for Android. 您可以简单地为Android部署Qt / C ++应用程序,实际上不需要在Android的Qt应用程序中使用QML。 All you need is to set up your development environment as described here and specifying settings for packages . 您所需要的只是按照此处所述设置开发环境并指定包的设置 After that when you build your application using the specified kit for Android, the APK file is generated and it would work normal on a device. 之后,当您使用Android的指定工具包构建应用程序时,将生成APK文件,它将在设备上正常工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM