Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QtWebEngine
  4. Which one to use: QtWebView and QtWebEngine
Forum Updated to NodeBB v4.3 + New Features

Which one to use: QtWebView and QtWebEngine

Scheduled Pinned Locked Moved Solved QtWebEngine
12 Posts 2 Posters 6.5k 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.
  • SGaistS Offline
    SGaistS Offline
    SGaist
    Lifetime Qt Champion
    wrote on last edited by
    #2

    Hi,

    The QtWebView module provides a wrapper around platform provided web views which AFAIK, currently, excludes Windows which doesn't provide such a component.

    QtWebEngine is a full featured web browser stack.

    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
    • I Offline
      I Offline
      Iris_419
      wrote on last edited by
      #3

      Hi,

      So that means we can't use QtWebView for windows, right?

      1 Reply Last reply
      0
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #4

        After a check at the current version (5.9). It can be used through the QtWebEngine module if available thus it makes it useable on Windows also but only the Visual Studio version since QtWebEngine can't be build with MinGW (well the chromium part underneath).

        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
        • I Offline
          I Offline
          Iris_419
          wrote on last edited by
          #5

          Hi,

          Sorry I'm new and may have some confusions about Qt.

          May I ask is it possible using QtWebView in a widget base application instead of QML? I can't find any example of this kind.

          Also is QtWebView newly introduced in 5.9 or it already exits in 5.4? Because I can't find any doc for QtWebView in 5.4.

          And I don't quite understand what do you mean by "can be used through the QtWebEngine module", could you please explain more about it or provide an example?

          Thanks a lot!

          1 Reply Last reply
          0
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #6

            AFAIK, not directly but you can use QQuickWidget.

            No, it was introduced in 5.6.

            From a quick look at the code, the module is enabled for specific platforms which means that it will use the native web view from said platforms or if the QtWebEngine module is available which means that QtWebView can make use of it as backend on platform that don't provide a native web view component.

            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
            • I Offline
              I Offline
              Iris_419
              wrote on last edited by
              #7

              Hi @SGaist ,

              I got a little confused. Currently I'm working on Mac, in Qt 5.4 libraries there is also a "QtWebView.framework". However QtWebView cannot be used on 5.4? (Since our application is currently based on 5.4 and they don't have a plan upgrade to higher version in short time)

              And just wondering for mac, is there a way to customize a widget based on native web view with can be used for displaying a local html?

              Thanks a lot for answering!

              1 Reply Last reply
              0
              • SGaistS Offline
                SGaistS Offline
                SGaist
                Lifetime Qt Champion
                wrote on last edited by
                #8

                Might be a Technical Preview.

                What customisation do you have in mind ? By the way, you also still have QtWebKit available in this version of Qt.

                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
                • I Offline
                  I Offline
                  Iris_419
                  wrote on last edited by
                  #9

                  Hi @SGaist ,

                  Could you please explain a little more about the use of "Technical Preview"? So if it is a preview, is it possible to experiment with it in 5.4?

                  Thanks!

                  1 Reply Last reply
                  0
                  • SGaistS Offline
                    SGaistS Offline
                    SGaist
                    Lifetime Qt Champion
                    wrote on last edited by
                    #10

                    Technical Preview is the state where a module is deemed mature enough for people interested in Qt to test before it gets officially integrated within Qt. However the module might still change in terms of API following testers input.

                    So sure, you can use it, but it may have changed between there and the time it was officially integrated with Qt.

                    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
                    • I Offline
                      I Offline
                      Iris_419
                      wrote on last edited by
                      #11

                      Thank you very much!!

                      1 Reply Last reply
                      0
                      • SGaistS Offline
                        SGaistS Offline
                        SGaist
                        Lifetime Qt Champion
                        wrote on last edited by
                        #12

                        You welcome !

                        If that answers your question, please mark the thread as solved using the "Topic Tools" button so that other forum users may know a solution has been found :)

                        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

                        • Login

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