Qt not only makes compiling and deploying applications to iOS and Android an easy task, but it also supports native functionalities through Java (Android) and Objective C++ (iOS) coding. In the following sections, we will study both of these.
Improving support for iOS and Android applications
Calling Android functions from Qt
To call an Android function from Qt, we need to follow a few steps:
- Create an empty Qt Quick project, which we have done countless times.
- Open the project file (.pro) and add the following androidextras module to the project:
QT += quick
android: QT += androidextras
CONFIG += c++11
- Create AndroidManifest.xml and other important Android files by clicking on the Create Template button, which we learned...