Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Using of WebView module with Qt 5.6
Forum Updated to NodeBB v4.3 + New Features

Using of WebView module with Qt 5.6

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
8 Posts 5 Posters 4.9k 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.
  • F Offline
    F Offline
    FOXLISIN
    wrote on last edited by FOXLISIN
    #1

    Hi to everyone! I need to show html content in my application. I want to use WebView control for that.
    But i don't know how to connect it with my project. Is it WebView module available only on iOS and Andoid? Coz i'm writing a desktop application (mingw).

    in my .pro file:

    QT += qml quick webview
    

    in .qml file:

    import QtWebView 1.1
    

    error is: Project ERROR: Unknown module(s) in QT: webview
    ( this module is downloaded through MaintenanceTool )

    1 Reply Last reply
    0
    • L Offline
      L Offline
      Leonardo
      wrote on last edited by
      #2

      Depending on your needs, maybe you could use a Text element. It has some basic support for HTML.

      http://doc.qt.io/qt-5/qml-qtquick-text.html#textFormat-prop

      F 1 Reply Last reply
      0
      • L Leonardo

        Depending on your needs, maybe you could use a Text element. It has some basic support for HTML.

        http://doc.qt.io/qt-5/qml-qtquick-text.html#textFormat-prop

        F Offline
        F Offline
        FOXLISIN
        wrote on last edited by FOXLISIN
        #3

        @Leonardo yes, maybe I can. But this is important problem.

        PS. With msvc compiler all is good (i look through into Qt folder and I can't find webview library in mingw catalog)

        1 Reply Last reply
        0
        • L Offline
          L Offline
          Leonardo
          wrote on last edited by
          #4

          Well, I think it's not available for Windows. I just tried compiling it with MSVC and got this:

          Project ERROR: No WebView backend found!

          Checking its source tree, we only see the following platform specific files:

          qwebview_android.cpp
          qwebview_ios.mm
          qwebview_osx.mm

          In addition to that, documentation is a bit vague:

          WebView is a component for displaying web content which is implemented using native APIs on the platforms where this is available, thus it does not necessarily require including a full web browser stack as part of the application.

          Maybe that's it.

          1 Reply Last reply
          0
          • A Offline
            A Offline
            Alex M
            wrote on last edited by
            #5

            For desktop platforms you can use qtwebengine
            http://doc.qt.io/qt-5/qtwebengine-platform-notes.html

            F 1 Reply Last reply
            0
            • A Alex M

              For desktop platforms you can use qtwebengine
              http://doc.qt.io/qt-5/qtwebengine-platform-notes.html

              F Offline
              F Offline
              FOXLISIN
              wrote on last edited by FOXLISIN
              #6

              @Leonardo But with msvc compiler on Windows all builds good. This is problem of mingw and a don't understand why (Qt's forgot to put the libraries into the folder? :) )

              @Alex-M the same problem with mingw compiler :(

              1 Reply Last reply
              0
              • Shiva.MS Offline
                Shiva.MS Offline
                Shiva.M
                wrote on last edited by
                #7

                Use import QtWebKit 3.0 for mingw and import QtWebView 1.0 for android

                1 Reply Last reply
                0
                • V Offline
                  V Offline
                  vladstelmahovsky
                  wrote on last edited by
                  #8

                  for some unknown reason, QWebEngine no available for MinGW
                  Since WevView on desktop its just wrap up over QWebEngine, it does not available as well

                  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