Building Qt applications for Android

You may wonder how to build Qt applications for Android devices since this application is built for desktop PCs. Well, it's much easier than you thought.

  1. Switch to Projects mode.
  2. Click on Add Kit and select Android for armeabit-v7a (GCC 4.9 and Qt 5.3.2). Note that the text may differ a little bit.
  3. Plug in your phone if you're using it as the target Android device.
  4. Open Command Prompt and run adb devices. Make sure your device is on the list.

Now, click on Run and Qt will prompt a dialog asking you to select the Android device, as shown in the following screenshot:

Building Qt applications for Android

We choose to run our application on an actual Android ...

Get Qt 5 Blueprints now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.