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. Error when trying to use QWebEngine

Error when trying to use QWebEngine

Scheduled Pinned Locked Moved Unsolved Qt WebKit
9 Posts 4 Posters 3.7k 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.
  • D Offline
    D Offline
    deleted122
    wrote on last edited by
    #1

    Hello there,

    i am quite new to QTCreator and i am trying to build a little App for Android where i use a QWebEngine.
    But i got a problem with that.
    If i just include "import QtWebEngine 1.3" in my QML file, it cant find the QML module.
    So i tried to add "QT += webengine" in my project file, but i get this error then: "Project ERROR: Unknown module(s) in QT: webengine".
    Can anyone help me ?

    I am using Windows 10 and Qt Creator 4.1.0
    Based on Qt 5.7.0 (MSVC 2013, 32 bit)

    If you need any additional information just tell what you need.

    Thanks in advance.
    Dennis

    1 Reply Last reply
    0
    • K Offline
      K Offline
      Konstantin Tokarev
      wrote on last edited by
      #2

      QtWebEngine does not support Android. You should use Qt WebView instead, which wraps native browser engine

      1 Reply Last reply
      1
      • D Offline
        D Offline
        deleted122
        wrote on last edited by
        #3

        Thanks, i tried to use QWebView, but i have the same problem there.
        If i try to execute, i get the message: qrc:/Navigation.qml:3 module "QtWebKit" is not installed
        Or qrc:/Navigation.qml:4 module "QtWebView" is not installed
        if i try to use the WebView.
        Can you tell me why my QT does not know these packages?

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

          Hi and welcome to devnet,

          @Konstantin-Tokarev meant the QtWebView module. QtWebkit does not support Android either. That's a platform constraint and has nothing to do 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
          • K Offline
            K Offline
            Konstantin Tokarev
            wrote on last edited by
            #5

            Actually, Android does not restrict use of 3rd party browser engines like iOS, so lack of QtWebKit/QtWebEngine on Android is more about porting work that was not done.

            In fact, QtWebKit was known to build on Android, but it didn't work well enough to advertise Android as supported platform.

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

              My bad, I remembered wrongly. Thanks for the explanation !

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

                Hello

                I am getting this error " Unknown module(s) in QT: webengine" when I try to build with mingw53_32 compiler. I am using QT creator 4.1.0. Will it support webengine? (I couldn't find this dll inside Qt\5.7\mingw53_32\qml).

                Please suggest.

                K 1 Reply Last reply
                0
                • M manikandan_0617

                  Hello

                  I am getting this error " Unknown module(s) in QT: webengine" when I try to build with mingw53_32 compiler. I am using QT creator 4.1.0. Will it support webengine? (I couldn't find this dll inside Qt\5.7\mingw53_32\qml).

                  Please suggest.

                  K Offline
                  K Offline
                  Konstantin Tokarev
                  wrote on last edited by
                  #8

                  @manikandan_0617 QtWebEngine is not available for MinGW compiler. You either need to switch to MSVC, or use QtWebKit

                  M 1 Reply Last reply
                  1
                  • K Konstantin Tokarev

                    @manikandan_0617 QtWebEngine is not available for MinGW compiler. You either need to switch to MSVC, or use QtWebKit

                    M Offline
                    M Offline
                    manikandan_0617
                    wrote on last edited by
                    #9

                    @Konstantin-Tokarev Thanks.

                    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