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. module "QtWebEngine" is not installed

module "QtWebEngine" is not installed

Scheduled Pinned Locked Moved General and Desktop
qml qtwebengine
13 Posts 3 Posters 18.0k 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.
  • R Offline
    R Offline
    rostik
    wrote on last edited by
    #2

    Hi,
    Two things come to my mind:

    • QT += webengine
    • #include <QtWebEngine/qtwebengineglobal.h> and QtWebEngine::initialize(); in your main.cpp
    1 Reply Last reply
    0
    • E Offline
      E Offline
      ejos
      wrote on last edited by
      #3

      Thanks for the reply. But still I find the same issue even after including ur suggestion :(:(

      p3c0P 1 Reply Last reply
      0
      • E ejos

        Thanks for the reply. But still I find the same issue even after including ur suggestion :(:(

        p3c0P Offline
        p3c0P Offline
        p3c0
        Moderators
        wrote on last edited by
        #4

        @ejos Which Qt version are you using ?
        Did you select it while installing Qt ?

        157

        1 Reply Last reply
        0
        • E Offline
          E Offline
          ejos
          wrote on last edited by
          #5

          yes. I am using Qt 5.4

          I could find the QtWebEngine folder inside the Qt/src/qml

          p3c0P 1 Reply Last reply
          0
          • E ejos

            yes. I am using Qt 5.4

            I could find the QtWebEngine folder inside the Qt/src/qml

            p3c0P Offline
            p3c0P Offline
            p3c0
            Moderators
            wrote on last edited by p3c0
            #6

            @ejos Ok. Do you see QtWebEngine folder under gcc_64/qml (not src) ?
            On my Linux system complete path is /opt/Qt5.4.1/5.4/gcc_64/qml/QtWebEngine viz. Qt installed directory.

            157

            1 Reply Last reply
            0
            • E Offline
              E Offline
              ejos
              wrote on last edited by
              #7

              Yes I am able to find.
              DTPC-184N:QtWebEngine user$ cd /Applications/QT/5.4/clang_64/qml/QtWebEngine
              DTPC-184N:QtWebEngine user$ ls -lrt
              total 416
              -rw-r--r-- 1 root admin 70 Feb 13 15:55 qmldir
              -rw-r--r-- 1 root admin 5786 Feb 13 15:56 plugins.qmltypes
              drwxr-xr-x 5 root admin 170 Feb 13 15:56 experimental
              drwxr-xr-x 10 root admin 340 Feb 13 15:56 UIDelegates
              -rwxr-xr-x 1 root admin 56836 Feb 13 15:57 libqtwebengineplugin.dylib
              -rwxr-xr-x 1 root admin 139492 Feb 13 15:57 libqtwebengineplugin_debug.dylib

              p3c0P 1 Reply Last reply
              0
              • E ejos

                Yes I am able to find.
                DTPC-184N:QtWebEngine user$ cd /Applications/QT/5.4/clang_64/qml/QtWebEngine
                DTPC-184N:QtWebEngine user$ ls -lrt
                total 416
                -rw-r--r-- 1 root admin 70 Feb 13 15:55 qmldir
                -rw-r--r-- 1 root admin 5786 Feb 13 15:56 plugins.qmltypes
                drwxr-xr-x 5 root admin 170 Feb 13 15:56 experimental
                drwxr-xr-x 10 root admin 340 Feb 13 15:56 UIDelegates
                -rwxr-xr-x 1 root admin 56836 Feb 13 15:57 libqtwebengineplugin.dylib
                -rwxr-xr-x 1 root admin 139492 Feb 13 15:57 libqtwebengineplugin_debug.dylib

                p3c0P Offline
                p3c0P Offline
                p3c0
                Moderators
                wrote on last edited by p3c0
                #8

                @ejos Well I'm also not sure why it not works on Mac. May be someone else with that platform knowledge would answer. Or try reinstalling it once. QtWebEngine is supposed to work on Mac too. https://wiki.qt.io/QtWebEngine

                157

                1 Reply Last reply
                0
                • E Offline
                  E Offline
                  ejos
                  wrote on last edited by
                  #9

                  While using QWebEngineView , Is there an option like QDeclarativeContext / QDeclarativeEngine where to QML context is set from CPP file.

                  p3c0P 1 Reply Last reply
                  0
                  • E ejos

                    While using QWebEngineView , Is there an option like QDeclarativeContext / QDeclarativeEngine where to QML context is set from CPP file.

                    p3c0P Offline
                    p3c0P Offline
                    p3c0
                    Moderators
                    wrote on last edited by
                    #10

                    @ejos No, atleast I haven't come across. QWebEngineView is a pure C++ class.
                    Did you try reinstalling ?

                    157

                    1 Reply Last reply
                    0
                    • E Offline
                      E Offline
                      ejos
                      wrote on last edited by
                      #11

                      haven't tried yet, will do that.
                      After including the includes QtQuick or QQml in the header file getting errors as below

                      In file included from ../ssparkl/readwidget.h:21:
                      In file included from /Applications/QT/5.4/clang_64/lib/QtQuick.framework/Headers/QQuickView:1:
                      In file included from /Applications/QT/5.4/clang_64/lib/QtQuick.framework/Versions/5/Headers/qquickview.h:37:
                      In file included from /Applications/QT/5.4/clang_64/lib/QtQuick.framework/Headers/qquickwindow.h:42:
                      /Applications/QT/5.4/clang_64/lib/QtQml.framework/Headers/qqml.h:62:5: error: redefinition of enumerator 'QML_HAS_ATTACHED_PROPERTIES'
                      QML_HAS_ATTACHED_PROPERTIES = 0x01

                      In file included from /Applications/QT/5.4/clang_64/lib/QtQuick.framework/Headers/QQuickView:1:
                      In file included from /Applications/QT/5.4/clang_64/lib/QtQuick.framework/Versions/5/Headers/qquickview.h:37:
                      In file included from /Applications/QT/5.4/clang_64/lib/QtQuick.framework/Headers/qquickwindow.h:42:
                      /Applications/QT/5.4/clang_64/lib/QtQml.framework/Headers/qqml.h:61:1: warning: declaration does not declare anything [-Wmissing-declarations]
                      enum { /* TYPEINFO flags */
                      ^~~~
                      /Applications/QT/5.4/clang_64/lib/QtQml.framework/Headers/qqml.h:99:5: error: redefinition of 'qmlRegisterType'
                      int qmlRegisterType()

                      kindly help to resolve this issue

                      p3c0P 1 Reply Last reply
                      0
                      • E ejos

                        haven't tried yet, will do that.
                        After including the includes QtQuick or QQml in the header file getting errors as below

                        In file included from ../ssparkl/readwidget.h:21:
                        In file included from /Applications/QT/5.4/clang_64/lib/QtQuick.framework/Headers/QQuickView:1:
                        In file included from /Applications/QT/5.4/clang_64/lib/QtQuick.framework/Versions/5/Headers/qquickview.h:37:
                        In file included from /Applications/QT/5.4/clang_64/lib/QtQuick.framework/Headers/qquickwindow.h:42:
                        /Applications/QT/5.4/clang_64/lib/QtQml.framework/Headers/qqml.h:62:5: error: redefinition of enumerator 'QML_HAS_ATTACHED_PROPERTIES'
                        QML_HAS_ATTACHED_PROPERTIES = 0x01

                        In file included from /Applications/QT/5.4/clang_64/lib/QtQuick.framework/Headers/QQuickView:1:
                        In file included from /Applications/QT/5.4/clang_64/lib/QtQuick.framework/Versions/5/Headers/qquickview.h:37:
                        In file included from /Applications/QT/5.4/clang_64/lib/QtQuick.framework/Headers/qquickwindow.h:42:
                        /Applications/QT/5.4/clang_64/lib/QtQml.framework/Headers/qqml.h:61:1: warning: declaration does not declare anything [-Wmissing-declarations]
                        enum { /* TYPEINFO flags */
                        ^~~~
                        /Applications/QT/5.4/clang_64/lib/QtQml.framework/Headers/qqml.h:99:5: error: redefinition of 'qmlRegisterType'
                        int qmlRegisterType()

                        kindly help to resolve this issue

                        p3c0P Offline
                        p3c0P Offline
                        p3c0
                        Moderators
                        wrote on last edited by
                        #12

                        @ejos What did you include and where ?

                        157

                        1 Reply Last reply
                        0
                        • E Offline
                          E Offline
                          ejos
                          wrote on last edited by
                          #13

                          The issue was with mismatch of QDeclarativeView and QQuickView use simultaneously. The issue is resolved once I changed all QDeclarativeView to QQuickView.

                          Thanks for replies

                          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