[Solved] Qt 5.4 Webkit or Webengine support



  • Hey,

    i couldn't find satisfying information about the Webkit or Webengine support for mobile platforms(most likely android), afaik it looks like it's not officially supportet.
    But i also have read that it should be somehow possible to use either Webkit or Webengine. If i am trying to compile for arm it tells me that this module(s) are unknown.

    Is there any possible way to use one of these Webengines?

    Oh and btw.: I am using Qt 5.4.

    Greetings :)


  • Moderators

    Hi,
    [quote author="onek24" date="1420715713"]i couldn't find satisfying information about the Webkit or Webengine support for mobile platforms(most likely android), afaik it looks like it's not officially supportet.
    But i also have read that it should be somehow possible to use either Webkit or Webengine.[/quote]They are definitely not supported.

    I'm not sure what happened with Android, but Apple explicitly forbids 3rd-party web engines in iOS, so it is impossible to use Qt WebKit or Qt WebEngine on iOS.

    To run web apps on Android and iOS, use the "Qt WebView":http://doc.qt.io/qt-5/qtwebview-index.html module (not to be confused with Qt WebKit's WebView). This is a thin wrapper around the native web engines on the mobile platforms.



  • bq. They are definitely not supported.

    Well, i hope they will get supportet in the future =).

    bq. To run web apps on Android and iOS, use the Qt WebView [doc.qt.io] module (not to be confused with Qt WebKit’s WebView). This is a thin wrapper around the native web engines on the mobile platforms.

    Thank you very much, as always a high quality answer from you.

    Well, it seems like the Qt WebView is QML-only. Is there any Widget-like type hence this project is not QtQuick based.

    Or let's ask that way: Is it possible to use a Webview Widget(or similar) for an Android Application?


  • Moderators

    You're most welcome :)

    [quote author="onek24" date="1420726875"]Well, i hope they will get supportet in the future =).[/quote]Well, it's difficult. It's even impossible in iOS's case -- unless you can convince Apple to allow it. They are the ones who said no.

    [quote author="onek24" date="1420726875"]Well, it seems like the Qt WebView is QML-only. Is there any Widget-like type hence this project is not QtQuick based.

    Or let's ask that way: Is it possible to use a Webview Widget(or similar) for an Android Application?[/quote]There doesn't seem to be a WebView widget (yet). You could try wrapping the QML version in a QQuickWidget?



  • [quote author="JKSH" date="1420771621"]There doesn’t seem to be a WebView widget (yet). You could try wrapping the QML version in a QQuickWidget?[/quote]

    Have thought about that but this seems to be an overkill and is hardly possible for this project since it's not just a browser. There are several parts of this application accessing a WebView and a wrapper for the QML version is too much efford for that. I'll try something else, thank you for your time JKSH.

    -- solved --



  • Hi

    Do you find some alternative? The miss of a web engine for android is an huge lack in Qt porting. Event if current QtWebView is a module for QML it can be easily reproduced by making same mixed code C++/java but the limitations of this solution are a lot. The main is the impossibility to overlap the native webview control with some other Qt object (I'm working in graphicview mode and I need layers full working). After months still loking for a solution allowing me to port my application working using webkit to android. Very very bad.



  • Hey,

    sorry, i didn't find any alternatives yet.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.