pyqt生成 android,PyQt on Android

问题

I'm working on PyQt now, and I have to create the application on Android, I've seen the kivy library, but it's too crude.

Is there any way now to run an application on Android made on PyQt?

回答1:

Android does not support pyQt4. PyQt5 is however supported(read this: https://groups.google.com/forum/#!topic/android-scripting/HUbyuYnm3Z8). However, you could port you application to use PySide(https://pypi.python.org/pypi/PySide). It provides bindings for the Qt4 platform. You can then use pyside-android(http://thp.io/2011/pyside-android/).

回答2:

With the tool pyqtdeploy you can deploy a PyQt5 app to:

Windows

GNU/Linux

Mac OS X

Android

iOS

Click here to see pyqtdeploy's documentation. It is a GUI tool that will package your PyQt5 application and compile it for the target platform.

It lets you select various Qt modules to include in the compilation:

On the command-line you would use the pyqtdeploy-build command like this:

pyqtdeploy-build pyqt-demo.pdy

Back in June 2016, there was a mailing list message that indicated that pyqtdeploy works. It's 2018 as I'm writing this so I assume pyqtdeploy has matured; the latest package version is 2.0.1 which was released on 5 January 2018.

来源:https://stackoverflow.com/questions/18436340/pyqt-on-android

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值