Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    Solved Unknown module(s) in QT: webkitwidgets

    General and Desktop
    7
    53
    8889
    Loading More Posts
    • 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.
    • N
      Nite Coder last edited by

      I have been trying to use Qt WebEngine, but I need to add it to my .pro file. I tried adding 'webkitwidgets', but all I get is the error 'Unknown module(s) in QT: webkitwidgets'. I would appreciate some help. Thanks in advance!
      Note

      • I am running Ubuntu Mate
      • I am running Qt Creator 4.6.2
      • I am running Qt 5.10.1

      Again thanks in advance! : )

      Also my .pro file.

      TEMPLATE +=app
      QT+= webkitwidgets
      CONFIG += c++11
      
      1 Reply Last reply Reply Quote 0
      • VRonin
        VRonin last edited by VRonin

        webengine != webkit. the first is based on the core of Google Chrome while the other is based on the core of Apple's Safari

        use QT += webenginewidgets

        "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
        ~Napoleon Bonaparte

        On a crusade to banish setIndexWidget() from the holy land of Qt

        1 Reply Last reply Reply Quote 5
        • N
          Nite Coder last edited by

          Sorry, I did do that, I just wrote it down wrong. Its still is an error.

          //My actual .pro file
          TEMPLATE +=app
          QT+= webenginewidgets
          CONFIG+= c++11
          
          1 Reply Last reply Reply Quote 0
          • M
            mpergand last edited by

            Try:
            QT += widgets webenginewidgets

            1 Reply Last reply Reply Quote 3
            • N
              Nite Coder last edited by

              It still won't work. Is it my version? Qt 5.10.1

              1 Reply Last reply Reply Quote 0
              • M
                mpergand last edited by

                Look at the .pro file of the DemoBrowser in the Examples folder that come along with Qt.

                1 Reply Last reply Reply Quote 0
                • N
                  Nite Coder last edited by

                  I did. That's what was in the .pro file.

                  //Simple Browser .pro File
                  
                  TEMPLATE = app
                  TARGET = simplebrowser
                  QT += webenginewidgets
                  CONFIG += c++11
                  
                  HEADERS += \
                      browser.h \
                      browserwindow.h \
                      downloadmanagerwidget.h \
                      downloadwidget.h \
                      tabwidget.h \
                      webpage.h \
                      webpopupwindow.h \
                      webview.h
                  
                  SOURCES += \
                      browser.cpp \
                      browserwindow.cpp \
                      downloadmanagerwidget.cpp \
                      downloadwidget.cpp \
                      main.cpp \
                      tabwidget.cpp \
                      webpage.cpp \
                      webpopupwindow.cpp \
                      webview.cpp
                  
                  FORMS += \
                      certificateerrordialog.ui \
                      passworddialog.ui \
                      downloadmanagerwidget.ui \
                      downloadwidget.ui
                  
                  RESOURCES += data/simplebrowser.qrc
                  
                  # install
                  target.path = $$[QT_INSTALL_EXAMPLES]/webenginewidgets/simplebrowser
                  INSTALLS += target
                  
                  
                  mrjj 1 Reply Last reply Reply Quote 0
                  • mrjj
                    mrjj Lifetime Qt Champion @Nite Coder last edited by mrjj

                    @Nite-Coder
                    Hi
                    Make sure to delete the build folder
                    and re-run qmake from build menu to make sure .pro file is 100% parsed again.

                    1 Reply Last reply Reply Quote 3
                    • N
                      Nite Coder last edited by

                      What is the build folder? Sorry if I am asking a lot of, probably pointless, questions. But I appreciate the help.

                      mrjj 1 Reply Last reply Reply Quote 0
                      • mrjj
                        mrjj Lifetime Qt Champion @Nite Coder last edited by mrjj

                        @Nite-Coder
                        All questions are fine.
                        The build folder is where it puts all generated files. all the .o files etc.
                        Its normally located on same level as the project folder.
                        and named something like
                        build-PROJECTNAME-Desktop_Qt_5_10_1_CompilerName-Debug

                        if you are using shadow build. you can see it in projects
                        alt text

                        If issue finding it then
                        Open project
                        Right click on any file in proejct
                        select Open containing folder
                        The file explorer should come.
                        Go one step up/ back
                        you should see folder. ( that is if u did build the project)

                        1 Reply Last reply Reply Quote 3
                        • N
                          Nite Coder last edited by

                          Okay, I did that and it still didn't work. I deleted the build folder and re-built it.

                          mrjj 1 Reply Last reply Reply Quote 1
                          • mrjj
                            mrjj Lifetime Qt Champion @Nite Coder last edited by mrjj

                            @Nite-Coder
                            ok so we know u 100% have
                            QT += webenginewidgets

                            I wonder if its installed ?
                            It has to be selected during install if not whole group was selected.
                            If you used the online installer, you can use
                            MaintenanceTool.exe in Qt folder.

                            alt text

                            1 Reply Last reply Reply Quote 3
                            • N
                              Nite Coder last edited by Nite Coder

                              Okay, I have the Maintenance Tool. But it is a .dat file. Do I have to run a chmod command to get it running? And what would the chmod command be. Thanks for upvoting me mrjj!

                              mrjj 1 Reply Last reply Reply Quote 0
                              • mrjj
                                mrjj Lifetime Qt Champion @Nite Coder last edited by mrjj

                                @Nite-Coder
                                Hmm. I just releasize you are on linux. :)
                                Did you use online installer or got Qt via distro ?

                                update:
                                should be something like
                                alt text

                                1 Reply Last reply Reply Quote 3
                                • N
                                  Nite Coder last edited by Nite Coder

                                  I used the online installer after using the distro's repositories. Would that affect anything?
                                  Edit: I got the .dat and .ini

                                  mrjj 1 Reply Last reply Reply Quote 0
                                  • mrjj
                                    mrjj Lifetime Qt Champion @Nite Coder last edited by

                                    @Nite-Coder
                                    So you dont have the ".exe" ?

                                    1 Reply Last reply Reply Quote 1
                                    • N
                                      Nite Coder last edited by

                                      No I don't...

                                      mrjj 1 Reply Last reply Reply Quote 0
                                      • mrjj
                                        mrjj Lifetime Qt Champion @Nite Coder last edited by mrjj

                                        @Nite-Coder
                                        https://forum.qt.io/topic/80874/why-can-t-i-find-maintenance-tool-in-qt5-for-ubuntu-16-04-lts
                                        Im not 100% sure but i think easy route to install extra Qt version from
                                        online to get the tool. ( and install in local user folder, NOT system wide folder )
                                        If wonder if we can just copy exe. but i fear .dat is not updated.

                                        N 1 Reply Last reply Reply Quote 1
                                        • N
                                          Nite Coder @mrjj last edited by Nite Coder

                                          @mrjj
                                          What is the local user folder?
                                          And...
                                          So you want me to install Qt again with the online install

                                          I just managed to copy the .dat file so I could rename it o .exe. It opened up an archive manager and displayed an error message saying it couldn't open the file as a PE archive

                                          mrjj 1 Reply Last reply Reply Quote 0
                                          • mrjj
                                            mrjj Lifetime Qt Champion @Nite Coder last edited by mrjj

                                            @Nite-Coder
                                            well just in our home folder.
                                            Not in /opt or anywhere rest of system might look for so files etc.
                                            (just to be safe. not sure it matters)

                                            Well it seems to be suggested that.
                                            Else wait a few hours and maybe someone know how to apt-get it directly or
                                            something faster.
                                            we could also just try to copy my version and see but im not sure it has its right ini file and dat file then.
                                            maybe you can apt-get webengine directly, but im not sure under which name/deb file.

                                            the .dat file is NOT the exe. :)

                                            1 Reply Last reply Reply Quote 2
                                            • First post
                                              Last post