今天QT5.2的beta版出来了,从其描述文档来看,支持了android,特地下来试试。

New Modules and Nice Goodies

Some of the main new features of Qt 5.2include:

Qt Bluetooth: supported on Linux with Bluez4.x and Blackberry

Qt NFC: supported on Blackberry

Qt Positioning: supported on all platformsusing NMEA data, and using GeoClue on Linux

Qt Windows Extras: Integrate with nativecode on Windows

Qt Mac Extras: Integrate with native codeon Mac OS X

Qt Android Extras: Integrate with nativecode on Android

Improved time zone and locale support withQTimeZone and QCollator

Enhancements to multiple Qt Widgets and anew one, the QKeySequenceEdit class

Animations for QML that can not be blockedby high loads on the main thread

Some new features and mobile specificcontrols for Qt Quick Controls

Accessibility is now fully supported on alldesktop platforms and basic support on Android.

For a more detailed list of all newfeatures in Qt 5.2 please have a look at the New Features page in the QtProject wiki.

下载安装Qt5.2

http://download.qt-project.org/development_releases/qt/5.2/5.2.0-beta1/

下载安装android SDK

http://developer.android.com/sdk/index.html

下载安装android NDK

http://developer.android.com/tools/sdk/ndk/index.html

下载安装apache ant

http://ant.apache.org/

下载安装JDK

http://www.oracle.com/technetwork/java/javase/downloads/index.html

打开Qt Creator,选择工具-选项-android,配置好刚刚安装的文件路径,并点击【启动android AVD管理器】


点击 New新建一个android模拟器,根据自己需要选择Device

点击ok,并选择刚刚建立的设备,点击Start启动,此过程比较慢,耐心等待。

重启Qt Creator已经可以看到有设备了,我们检查构建和运行中构建套件和Qt版本是否正确,确认无误接下来就可以建立工程


新建一个Qt gui项目,选择android for arm

或者将以前的工程修改为android的工程:

项目->添加构建套件->选择合适的编译工具

Qt5.2中的android环境搭建_第1张图片

编译完成之后,点击运行,选择刚刚建立好的avd,等待许久,就可以在模拟器中看到程序的运行效果(非常漫长的等待)。

更多相关文章

  1. Android SD卡,文件,文件夹工具
  2. Android 工具类 —— 截屏
  3. Android之ScrollView嵌套ListView解决工具
  4. android linux工具移植
  5. android 打开word pdf excle 进行预览 (工具类总结一)
  6. 64位 Ubuntu android studio 编译android工程出错
  7. android dex工具打包Could not reserve enough space for object
  8. Android 学习之CalendarManager日历管理工具类

随机推荐

  1. Android中帧动画在Activity启动时自动运
  2. android 在新建短信时,加入名称为","(英文
  3. android 快速移动sdCard的文件夹
  4. ICS SystemServer之Device Policy
  5. android webkit 打开debug调试信息
  6. Android调用系统短信功能发送短信
  7. Android用户界面 UI组件--自动提示输入框
  8. android通过耳机控制音乐播放器
  9. Android的线程使用来更新UI----Thread、H
  10. Android之SharedPreferences详解