Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QML WebView counter-part for C++/Qt Widgets? (i.e. use native browser)

QML WebView counter-part for C++/Qt Widgets? (i.e. use native browser)

Scheduled Pinned Locked Moved Unsolved General and Desktop
c++widgetswebviewqml
12 Posts 3 Posters 3.4k Views
  • 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.
  • Z Offline
    Z Offline
    zura
    wrote on 3 Feb 2018, 12:35 last edited by
    #1

    Hello,

    As I know, QML WebView component uses a native browser/API for each platform so no need to bundle webkit or chromium to your app... Is there a similar component in C++/Qt Widgets world?

    Thanks!

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 3 Feb 2018, 21:22 last edited by
      #2

      Hi,

      You can use the QQuickWidget to embed your QNL code.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • S Offline
        S Offline
        SGaist
        Lifetime Qt Champion
        wrote on 3 Feb 2018, 22:05 last edited by SGaist 2 May 2018, 20:53
        #3

        Just in case, QtWebView has support for native browser API where it's available, otherwise it uses QtWebEngine where possible.

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        Z 1 Reply Last reply 5 Feb 2018, 20:51
        0
        • S SGaist
          3 Feb 2018, 22:05

          Just in case, QtWebView has support for native browser API where it's available, otherwise it uses QtWebEngine where possible.

          Z Offline
          Z Offline
          zura
          wrote on 5 Feb 2018, 20:51 last edited by
          #4

          @SGaist said in QML WebView counter-part for C++/Qt Widgets? (i.e. use native browser):

          QWebView has support for native browser API where it's available

          QWebView seems completely removed in Qt 5.10.

          1 Reply Last reply
          0
          • S Offline
            S Offline
            SGaist
            Lifetime Qt Champion
            wrote on 5 Feb 2018, 20:53 last edited by
            #5

            No, the QtWebView module is very much alive.

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            Z 1 Reply Last reply 5 Feb 2018, 22:04
            0
            • S SGaist
              5 Feb 2018, 20:53

              No, the QtWebView module is very much alive.

              Z Offline
              Z Offline
              zura
              wrote on 5 Feb 2018, 22:04 last edited by
              #6

              @SGaist

              Does it use native browsers for desktop platforms? i.e. webkit on Mac and MSHTML (IE) on Windows?

              1 Reply Last reply
              0
              • S Offline
                S Offline
                SGaist
                Lifetime Qt Champion
                wrote on 5 Feb 2018, 22:10 last edited by
                #7

                For macOS it depends.

                For Windows, unless it's WinRT, no, it uses QtWebEngine. AFAIK, Windows as no system web view.

                Interested in AI ? www.idiap.ch
                Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                Z 1 Reply Last reply 5 Feb 2018, 22:12
                1
                • S SGaist
                  5 Feb 2018, 22:10

                  For macOS it depends.

                  For Windows, unless it's WinRT, no, it uses QtWebEngine. AFAIK, Windows as no system web view.

                  Z Offline
                  Z Offline
                  zura
                  wrote on 5 Feb 2018, 22:12 last edited by
                  #8

                  @SGaist

                  Btw, I meant QWebView (C++ Qt Widgets component) not QtWebView (QML component) - is this still available (and supported)? And is this the thin wrapper on top of platform browsers on desktop?

                  M 1 Reply Last reply 5 Feb 2018, 22:22
                  0
                  • S Offline
                    S Offline
                    SGaist
                    Lifetime Qt Champion
                    wrote on 5 Feb 2018, 22:20 last edited by
                    #9

                    QWebView is a class from either QtWebKit or the QtWebView module. Which one do you mean exactly ?

                    Interested in AI ? www.idiap.ch
                    Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                    1 Reply Last reply
                    1
                    • Z zura
                      5 Feb 2018, 22:12

                      @SGaist

                      Btw, I meant QWebView (C++ Qt Widgets component) not QtWebView (QML component) - is this still available (and supported)? And is this the thin wrapper on top of platform browsers on desktop?

                      M Offline
                      M Offline
                      mrjj
                      Lifetime Qt Champion
                      wrote on 5 Feb 2018, 22:22 last edited by
                      #10

                      Hi
                      Do you mean the one from WebKIT ?
                      http://doc.qt.io/archives/qt-4.8/qwebview.html#details
                      WebKit has been removed but still alive from external party.
                      https://forum.qt.io/topic/76739/webkit-status-2017

                      1 Reply Last reply
                      0
                      • Z Offline
                        Z Offline
                        zura
                        wrote on 5 Feb 2018, 22:26 last edited by zura 2 May 2018, 22:28
                        #11

                        To get to the original question - I'm interested if there is a web view component in Qt (preferable on C++/Widgets side) that uses native browsers for each desktop platform (Mac and Win at the moment, not winrt) - so there is no need to bundle webkit or chromium.

                        wxWidgets has wxWebView: http://docs.wxwidgets.org/3.0/classwx_web_view.html

                        1 Reply Last reply
                        0
                        • M Offline
                          M Offline
                          mrjj
                          Lifetime Qt Champion
                          wrote on 5 Feb 2018, 22:36 last edited by
                          #12

                          Hi
                          Not as far as i know.
                          You can use the MS ActiveX if you want (MSHTML)
                          http://doc.qt.io/qt-5/activeqt-activeqt-webbrowser-example.html
                          and other techs on the other platforms.

                          1 Reply Last reply
                          0

                          2/12

                          3 Feb 2018, 21:22

                          10 unread
                          • Login

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