47

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?

2 Answers 2

43

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.

2
  • is their any video tutorial for that?documentation doesn't explain well about possible errors. Commented Jan 10, 2018 at 7:28
  • @NimishBansal I can only find videos on Youtube where people use PyInstaller. the closest thing I found was this tutorial for using pyqtdeploy on Mac OS X.
    – user9903
    Commented Jan 10, 2018 at 17:22
17

Android does not support PyQt4. However PyQt5 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.

1
  • 3
    The "see this" link gives "content unavailable" for me. Any other links to information on pyqt5 on android?
    – fuzzyTew
    Commented Jun 21, 2021 at 8:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.