Book Image

Mastering Qt 5

By : Guillaume Lazar, Robin Penea
Book Image

Mastering Qt 5

By: Guillaume Lazar, Robin Penea

Overview of this book

Qt 5.7 is an application development framework that provides a great user experience and develops full-capability applications with Qt Widgets, QML, and even Qt 3D. This book will address challenges in successfully developing cross-platform applications with the Qt framework. Cross-platform development needs a well-organized project. Using this book, you will have a better understanding of the Qt framework and the tools to resolve serious issues such as linking, debugging, and multithreading. Your journey will start with the new Qt 5 features. Then you will explore different platforms and learn to tame them. Every chapter along the way is a logical step that you must take to master Qt. The journey will end in an application that has been tested and is ready to be shipped.
Table of Contents (20 chapters)
Mastering Qt 5
Credits
About the Authors
About the Reviewer
www.PacktPub.com
Preface

Packaging for Android


The aim of this section is to generate a standalone APK file for the gallery-mobile application. Packaging and deploying an application for Android require multiple steps:

  1. Configure the Android build details.

  2. Generate a keystore and a certificate.

  3. Customize the Android manifest from a template.

  4. Create a script to automate the packaging.

You can do most of the tasks directly from Qt Creator. Under the hood, the Qt tool, androiddeployqt, is called to generate the APK file. Go to ProjectsAndroid for armeabi-v7aBuild Steps. You should see a special build step: Build Android APK. The details look like the following screenshot:

The first thing to do is to select which Android API level you want to use to generate the Application. In our case, we selected android-23 for the Android API Level 23. Try to always build your application with the latest SDK version available.

To publish your application on the Play Store, you must sign the package. To be able to update an application...