PyQt5 and QtWebView on Android

1.9k Views Asked by At

First, I have to admit I come back to this topic from time to time, and always I am very confused.

I'd like to use PyQt5 to test wether I could make a test application working on Android. This application should have a web view inside, and here comes the first doubt.

Since QWebKit was removed since version 5.6 of Qt, I thought I had to rely on Qt WebEngine, but sadly it is not compatible with mobile platforms.

So I decided to give up util only recently I discovered there's a new player called Qt WebView, which according to the official docs

is useful on mobile platforms such as Android, iOS, and WinRT

I found this SO answer which explains how to use it from a Qt/QML perspective, but I still have to find out how to do it from a PyQt perspective.

I do have a small testing application which uses Qt WebEngine and it works fine (also as regards to the JS interaction with QWebChannels) on desktop.

So after this premise and before diving into the (for me still) obscure world of pyqtdeploy, my questions are:

  1. Will Qt WebView work with PyQt AND Android?
  2. If so, should I replace Qt WebEngine with Qt WebView?
0

There are 0 best solutions below