Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt WebKit
  4. QTWebview for Android with C++
Forum Updated to NodeBB v4.3 + New Features

QTWebview for Android with C++

Scheduled Pinned Locked Moved Unsolved Qt WebKit
6 Posts 3 Posters 4.0k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Miguel Lujan
    wrote on 5 Apr 2018, 08:42 last edited by
    #1

    Hi everyone,

    After read and search about the Webkit, i still not figure out know do what I need, I hope you can clarify my doubts.
    I'm working in a project with Qwebview in desktop(windows, qt5.9,minGW) that the only thing that have to do is access to a camera via IP and work fine...everything is ok...but now I'm trying to do the same for android (armv 7) of what I read Qwebview dont work in android, but there is the QTwebview that is for all platforms, but my problem is that in for QML Application and my programm is in C++.

    Is there anyway how use QTwebview without QML?

    Thanks

    1 Reply Last reply
    0
    • K Offline
      K Offline
      Konstantin Tokarev
      wrote on 5 Apr 2018, 11:48 last edited by
      #2

      Currently only QML API is public

      1 Reply Last reply
      1
      • M Offline
        M Offline
        Miguel Lujan
        wrote on 5 Apr 2018, 13:34 last edited by
        #3

        Thanks for the answer, is there other way to do it just with C++??....

        1 Reply Last reply
        0
        • K Offline
          K Offline
          Konstantin Tokarev
          wrote on 5 Apr 2018, 21:18 last edited by Konstantin Tokarev 4 May 2018, 21:19
          #4

          AFAIU, it's believed that QWidget-based UIs are unusable on mobile. However, if you are really inclined to avoid QML, you have 3 options:

          • Use private C++ API of Qt WebView. You'll probably need to fork QtWebView module if you want to avoid dealing with QQuickView completely
            • As a variation, you can insert QQuickWidget into your UI with minimal QML source which sets up WebView
          • Use Android API directly (this implies writing Java, in a manner similar to how QtWebView is implemented internally). This way will give you more control over web view, as API of QtWebView (previous option) is very limited
          • Use QtWebKit. There is no out of the box support of Android yet, but some people reported that they could run it successfully there. A bit of build system patching will be required, but there are some known 3rd party patches that will probably help. This is the best option if you need total control over web view, but it requires shipping QtWebKit with your application (as opposed to use of built-in web engine in the first two options)
          1 Reply Last reply
          0
          • M Offline
            M Offline
            Miguel Lujan
            wrote on 11 Apr 2018, 07:31 last edited by
            #5

            After looking what would be better for the programm, I think option 1 would be better, can you explain me more about the variation, use a QQuickWidget in my UI with minimal QML source?
            cause my knowledge of QML are null >.<

            J 1 Reply Last reply 11 Apr 2018, 07:37
            0
            • M Miguel Lujan
              11 Apr 2018, 07:31

              After looking what would be better for the programm, I think option 1 would be better, can you explain me more about the variation, use a QQuickWidget in my UI with minimal QML source?
              cause my knowledge of QML are null >.<

              J Offline
              J Offline
              J.Hilk
              Moderators
              wrote on 11 Apr 2018, 07:37 last edited by
              #6

              hi @Miguel-Lujan
              qt has some good examples that should get you startet

              • Qt Quick Widgets Example
              • Qt WebView Examples

              Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


              Q: What's that?
              A: It's blue light.
              Q: What does it do?
              A: It turns blue.

              1 Reply Last reply
              0

              1/6

              5 Apr 2018, 08:42

              • Login

              • Login or register to search.
              1 out of 6
              • First post
                1/6
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved