*******************************************************************
Turn from Http://www.cnblogs.com/rophie/p/3226543.html?ADUIN=2625726808&ADSESSION=1408536978&ADTAG=CLIENT. qq.5329_.0&adpubno=26349
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, follow the steps of the tutorial step by step.
3. You need to download the following four software first:
1) The Android SDK Tools download installation
2) The Android NDK download and unzip, note that there can be no spaces
3) Apache Ant v1.8 or later download and unzip, ditto
4) OpenJDK V6 or later download and unzip
4. Open qt Creator, select Tools-Options-android, configure the file path just installed, and click "Launch Android AVD manager"
5. Click New to create a new Android emulator, select device according to your needs
6. Click on the Ok-ok and select the device you just created, click Start, this process is slow, wait patiently.
7. Restart QT Creator already see the device, we check the build and run in the build suite and QT version is correct, confirm the correct next to build the project
8. Create a new QT GUI project and select Android for Arm
9. Modify the code to show Hello Qt
#ifndef mainwindow_h#define mainwindow_h#include <QMainWindow> #include <qlabel>class mainwindow:public qmainwindow{ q_object private: qlabel *label;public: MainWindow (Qwidget *parent = 0); ~mainwindow ();}; #endif//Mainwindow_h
#include "mainwindow.h" Mainwindow::mainwindow (Qwidget *parent) : Qmainwindow (parent) { label=new Qlabel (" Hello Qt ", this); Label->setgeometry (10,10,100,30);} Mainwindow::~mainwindow () { }
10. Click build directly to see if the normal compilation, if the error here, you can leave a message, try to solve for everyone. Everything is normal. Click Run, this process is slow, will be compiled into an APK file and deployed to the emulator.
Do not know why this is not full-screen, has not been carefully studied. Oh
Some settings for Android programs can be modified in the project properties
Specific settings can be viewed in QT help, stable version to wait until the release of Qt5.2, I believe Qt will do more and more good.
This is the end of the environment!
Window under QT for Android environment setup