How it works…

A Qt Quick application project is quite different from a form application project. You will be writing QML script most of the time instead of writing C/C++ code. The Android Software Development Kit (SDK), Android Native Development Kit (NDK), Java Development Kit (JDK), and Apache Ant are required to build and export your app to the Android platform. Alternatively, you can also use Gradle instead of Apache Ant for your Android kit. All you need to do is to enable the Use Gradle instead of Ant option and provide Qt with Gradle's installation path. Note that Android Studio is currently not supported by Qt Creator:

If you're running the app on an Android device, make sure that you have enabled USB debugging mode. To enable USB debugging mode, you need to first enable the developer options on your Android device by going to Settings | About Phone and tapping Build Number seven times. After that, go to Settings | Developer Options and you will see the USB debugging option in the menu. Enable that option and you can now export your app to your device for testing.

To build for the iOS platform, you need to run Qt Creator on a Mac and make sure the latest Xcode is installed on your Mac as well. To test your app on an iOS device, you need to register a developer account with Apple, register your device at the developer portal, and install the provisioning to your Xcode, which is a lot trickier than Android. You will be given access to the developer portal once you have obtained a developer account from Apple.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset