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 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
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on 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
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by SGaist
        #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
        0
        • SGaistS SGaist

          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 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
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on 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
            0
            • SGaistS SGaist

              No, the QtWebView module is very much alive.

              Z Offline
              Z Offline
              zura
              wrote on 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
              • SGaistS Offline
                SGaistS Offline
                SGaist
                Lifetime Qt Champion
                wrote on 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
                1
                • SGaistS SGaist

                  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 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?

                  mrjjM 1 Reply Last reply
                  0
                  • SGaistS Offline
                    SGaistS Offline
                    SGaist
                    Lifetime Qt Champion
                    wrote on 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

                      @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?

                      mrjjM Offline
                      mrjjM Offline
                      mrjj
                      Lifetime Qt Champion
                      wrote on 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 last edited by zura
                        #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
                        • mrjjM Offline
                          mrjjM Offline
                          mrjj
                          Lifetime Qt Champion
                          wrote on 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

                          • Login

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