Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PyQt on Android

People also ask

Does PyQt run on Android?

PyQt represents a set of Python v2 and v3 connections for the Qt application framework. It can be used on all platforms that support Qt, such as Windows, OS X, Linux, iOS, and Android.

Does PyQt5 work on Android?

Pyqtdeploy is a tool to run PyQt applications. It supports the deployment of desktop platforms (Linux, Windows and OS X) and mobile platforms (iOS and Android).

Is PyQt better than KIVY?

In this article, we conclude that there is no much difference in Kivy or PyQt when speaking about working on GUI in Python, but they both are frameworks that work on different applications such Kivy is much better for mobile apps and other multi-touch apps than desktop apps, whereas PyQt is much better for desktop apps ...

Can PyQt be used for mobile app development?

PyQT is a library that enables developers to use Python to develop apps on multiple platforms such as Android, iOS, etc. PyQT supports both QML and Python for developing mobile apps. PyQT is a very powerful tool for mobile app development and offers many benefits such as: A wide range of supported platforms.


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.

pyqtdeploy gui

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

pyqtdeploy modules

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.


Android does not support PyQt4. PyQt5 is however supported (see this). However, you could port your application to use PySide. It provides bindings for the Qt4 platform. You can then use pyside-android.