QT5.2 IOS编程

4 篇文章 0 订阅

1. 下载编译QT5.2源码

1.1  git clone git://gitorious.org/qt/qt5.git qt5.2

1.2  cd qt5.2

1.3 ./configure -xplatform macx-ios-clang -developer-build -opensource -confirm-license -nomake examples -nomake tests -release

1.5 make

如果编译过程中部分tool 和example无法编译通过, 打开对应模块的Makefile文件,找到qmake_all和qmake_first。把对应的***tool**和**example**注释掉。

编译完成后会在 qt5.2/qtbase/下生成 ios下的静态库。

2. 使用QT5.2

1.1 使用QT Create创建一个桌面工程(如Test)。编译运行,保证桌面程序没有错误。

1.2 cd Test;  ../qt5.2/qtbase/bin/qmake; qamke工具会生成一个Test.xcodeproj工程。

1.3. open Test.xcodeproj。 打开xcode, 设置bundle id和code signing id。 运行。

3. 问题。

3.1 生成的xcode工程缺少Copy bundle resource phases。 需要在 Editor->Add build phase 中手动添加。否则生成的app无法手动设置程序图标。

3.2 TextInput存在BUG, 无法自动打开或者关闭键盘。 需要手动调用 Textinput. openSoftwareInputPanel和Textinput. closeSoftwareInputPanel手动打开和滚比。

3.3 qt5.2暂时不支持中文

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值