• 11240阅读
  • 13回复

[转载]Qt for iOS Preview [复制链接]

上一主题 下一主题
离线fanformylove
 
只看楼主 倒序阅读 楼主  发表于: 2013-03-05
原文: http://blog.qt.digia.com/blog/2013/03/05/qt-for-ios-preview/


Qt for iOS Preview

Published March 5, 2013 | By Morten Johan Sørvig
We are very excited to be able to bring Qt to anew platform. Qt for iOS is planned to be a supported part of Qt 5.2,scheduled for release late 2013. The scope of that release is notcompletely determined: available resources, platform/app storerestrictions and Qt legacy set constraints on the project. This blogoutlines the current plan.
Qt 5.1 will contain a preview – which was in fact merged last Friday.It’s also possible to take a look today by checking out the Qt sourcecode. See “Getting Started” for detailed instructions below.
Development and Deployment
Development and especially deployment is done using Xcode. The supportedworkflow is to maintain a .pro file based project, export it to Xcode(and re-export when the project setup changes), and then build anddeploy using Xcode. Source code editing can as usual be done in anyeditor.
Qt 5 Architecture
Understanding the level of support various Qt modules will get, requiresa brief detour into Qt 5 architecture. With Qt 5 there is now a commonAPI that all platforms implement (the Qt platform abstraction – QPA).Most of the Qt for iOS project work will happen here, and this is thecode base the team will support. The QPA layer powers both widgets andQML (1 and 2).
Styling
The Qt Mac style uses the HITheme API provided by OS X to drawnative-looking UI elements. There is no such API on iOS, which meanscreating a QiOSStyle similar to QMacStyle is not possible.Cross-platform styles such as the new Fusion style will however beavailable. Future styling efforts will focus on controls for Qt Quick 2.
Qt Quick 2: JavaScript engines and JIT
Qt Quick 2 uses the V8 javascript engine, which cannot be deployed oniOS due to policy and technical limitations related to V8′s use of ajust-in-time compiler. This means no Qt Quick 2 on iOS for the timebeing. We are aware of the problem and are working on a solution.
What works today
  • Widgets
  • Graphics View
  • Qt Quick 1
  • OpenGL
  • Touch events
  • Orientation events
  • ++






Qt5 Cinematic Experience by QUIt Coding, ported to Qt Quick 1 and running on an iPad

Getting started
  1. Homework: Setup Xcode for development (acquire certificates,configure devices). Test-deploy one of the standard Xcode app templates.Make sure you have Git installed.
  2. Clone qtbase
    git clone git://gitorious.org/qt/qtbase.git qtbase-ios
    cd qtbase-ios/
    [Optional: git checkout ios for the development branch]
  3. Build QtBase for either device or simulator. Note that unlike Qt 4, Qt 5 does not support multi-architecture builds.
    /configure -xplatform unsupported/macx-ios-clang -developer-build -nomake examples -nomake tests -release [-sdk iphonesimulator]
    make
  4. Get the Simple Demo:
    git clone git://github.com/msorvig/qt-ios-demo.git
    cd qt-ios-demo
    ../qtbase-ios/bin/qmake
    open qt-ios-demo.xcodeproj





离线XChinux

只看该作者 1楼 发表于: 2013-03-05
不错啊,Qt for Android/iOS/WinRT,都给了我们一个选择,不用去学习那么多框架,虽然不可能成为主流。Qt的优势还是突出跨平台
二笔 openSUSE Vim N9 BB10 XChinux@163.com 网易博客 腾讯微博
承接C++/Qt、Qt UI界面、PHP及预算报销系统开发业务
离线jdwx

只看该作者 2楼 发表于: 2013-03-05
下一代 Ubuntu 桌面将基于 Qt 和 QML。
发帖时要说明:操作系统、Qt版本、编译器,这样能更快的得到回复。
离线hitler++

只看该作者 3楼 发表于: 2013-03-06
我等 Qt for Android 等了1年多了,看来就快要到了
离线jeffreylee

只看该作者 4楼 发表于: 2013-03-06
好消息不断,急切的等待
离线hover_sky

只看该作者 5楼 发表于: 2013-03-06
5.2 出ios的,什么时候出 Qt for Android 呢?
离线zybook
只看该作者 6楼 发表于: 2013-03-06
我估计这个月应该有ANROID版本了,digia公司的速度不赖。
喜欢Qt的朋友多交流
离线toby520

只看该作者 7楼 发表于: 2013-03-06
看来QT被digia收购是找到了真正的伯乐啊
QtQML多多指教开发社区 http://qtclub.heilqt.com
将QtCoding进行到底
关注移动互联网,关注金融
开发跨平台客户端,服务于金融行业
专业定制界面
群号:312125701   373955953(qml控件定做)
离线gaga0313

只看该作者 8楼 发表于: 2013-03-06
下一代 Ubuntu 桌面将基于 Qt 和 QML  这个不错啊
离线hitler++

只看该作者 9楼 发表于: 2013-03-06
Ubuntu这货太易变了,一会说下一个版本全部改用python,一会又说改成qt,还是kde比较稳固
离线onsunsl

只看该作者 10楼 发表于: 2013-03-09
期待for andriod
离线dxfans

只看该作者 11楼 发表于: 2013-03-11
为什么要跨平台了。。???
离线hp_201111

只看该作者 12楼 发表于: 2013-03-13
期待for andriod  ++
离线XChinux

只看该作者 13楼 发表于: 2013-03-13
应该是Qt for Android要比for iOS和for WinRT的早发布吧。
二笔 openSUSE Vim N9 BB10 XChinux@163.com 网易博客 腾讯微博
承接C++/Qt、Qt UI界面、PHP及预算报销系统开发业务
快速回复
限100 字节
 
上一个 下一个