Qt5.1 for android Development Environment configuration in windows

Source: Internet
Author: User

1. Download and install Qt 5.1.0 for Android (Windows 32-bit, 716 MB) http://qt-project.org/downloads

2. Open Qt Creator, open help, enter android, find the official instructions, and follow the steps in the tutorial.

3. download the following four software:

1) download and install The Android SDK Tools

2) download and decompress The Android NDK. Note that no space is allowed.

3) download and decompress Apache Ant v1.8 or later.

Download and decompress v6 or later

4. Open Qt Creator, select tool-Option-android, configure the file path you just installed, and click Start android AVD manager]

5. Click New to create an android simulator and select Device as needed.

6. Click OK-OK, select the device you just created, and click Start to Start. This process is slow and patient.

7. Restart Qt Creator to check whether the device is installed. Check whether the build kit and Qt version are correct during building and running. Then, you can create a project.

8. Create a Qt gui project and select android for arm.

9. modify the code to display hello Qt

 MAINWINDOW_H<QMainWindow><QLabel> MainWindow : **parent = ~ 
#include *= QLabel(,->setGeometry(,,,~


 

10. Click build to check whether the compilation is normal. If an error is reported, leave a message and try your best to solve the problem. If everything is normal, click Run. This process is slow and will be compiled into an apk file and deployed to the simulator.

I don't know why this is not full screen. I haven't studied it carefully. Haha

You can modify the settings of the android program in the project properties.

The specific settings can be viewed in the help of Qt. Stable versions will wait until Qt5.2 is released. I believe Qt will do better and better.

This is the end of Environment setup!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.