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. Unknown module(s) in QT: webkitwidgets
Forum Updated to NodeBB v4.3 + New Features

Unknown module(s) in QT: webkitwidgets

Scheduled Pinned Locked Moved Solved General and Desktop
53 Posts 7 Posters 16.0k Views 4 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.
  • M Offline
    M Offline
    mpergand
    wrote on last edited by
    #6

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

    1 Reply Last reply
    0
    • N Offline
      N Offline
      Nite Coder
      wrote on last edited by
      #7

      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
      
      
      mrjjM 1 Reply Last reply
      0
      • N Nite Coder

        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
        
        
        mrjjM Offline
        mrjjM Offline
        mrjj
        Lifetime Qt Champion
        wrote on last edited by mrjj
        #8

        @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
        3
        • N Offline
          N Offline
          Nite Coder
          wrote on last edited by
          #9

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

          mrjjM 1 Reply Last reply
          0
          • N Nite Coder

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

            mrjjM Offline
            mrjjM Offline
            mrjj
            Lifetime Qt Champion
            wrote on last edited by mrjj
            #10

            @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
            3
            • N Offline
              N Offline
              Nite Coder
              wrote on last edited by
              #11

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

              mrjjM 1 Reply Last reply
              1
              • N Nite Coder

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

                mrjjM Offline
                mrjjM Offline
                mrjj
                Lifetime Qt Champion
                wrote on last edited by mrjj
                #12

                @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
                3
                • N Offline
                  N Offline
                  Nite Coder
                  wrote on last edited by Nite Coder
                  #13

                  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!

                  mrjjM 1 Reply Last reply
                  0
                  • N 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!

                    mrjjM Offline
                    mrjjM Offline
                    mrjj
                    Lifetime Qt Champion
                    wrote on last edited by mrjj
                    #14

                    @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
                    3
                    • N Offline
                      N Offline
                      Nite Coder
                      wrote on last edited by Nite Coder
                      #15

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

                      mrjjM 1 Reply Last reply
                      0
                      • N Nite Coder

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

                        mrjjM Offline
                        mrjjM Offline
                        mrjj
                        Lifetime Qt Champion
                        wrote on last edited by
                        #16

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

                        1 Reply Last reply
                        1
                        • N Offline
                          N Offline
                          Nite Coder
                          wrote on last edited by
                          #17

                          No I don't...

                          mrjjM 1 Reply Last reply
                          0
                          • N Nite Coder

                            No I don't...

                            mrjjM Offline
                            mrjjM Offline
                            mrjj
                            Lifetime Qt Champion
                            wrote on last edited by mrjj
                            #18

                            @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
                            1
                            • mrjjM 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 Offline
                              N Offline
                              Nite Coder
                              wrote on last edited by Nite Coder
                              #19

                              @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

                              mrjjM 1 Reply Last reply
                              0
                              • N 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

                                mrjjM Offline
                                mrjjM Offline
                                mrjj
                                Lifetime Qt Champion
                                wrote on last edited by mrjj
                                #20

                                @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
                                2
                                • N Offline
                                  N Offline
                                  Nite Coder
                                  wrote on last edited by
                                  #21

                                  Thanks for the help mrjj! I upvoted you on every post : ) (Thanks for the upvote!) I think I'll wait. The apt-get method seems to be the best idea. But I'll try installing it again.

                                  mrjjM 1 Reply Last reply
                                  1
                                  • N Nite Coder

                                    Thanks for the help mrjj! I upvoted you on every post : ) (Thanks for the upvote!) I think I'll wait. The apt-get method seems to be the best idea. But I'll try installing it again.

                                    mrjjM Offline
                                    mrjjM Offline
                                    mrjj
                                    Lifetime Qt Champion
                                    wrote on last edited by
                                    #22

                                    @Nite-Coder
                                    I agree. Its pretty normal to use distro Qt and for say unity i think it was
                                    also needed for integration. So i assume there is some other way.

                                    1 Reply Last reply
                                    1
                                    • N Offline
                                      N Offline
                                      Nite Coder
                                      wrote on last edited by
                                      #23

                                      I just found the exe file! : ) lol

                                      mrjjM 1 Reply Last reply
                                      1
                                      • N Nite Coder

                                        I just found the exe file! : ) lol

                                        mrjjM Offline
                                        mrjjM Offline
                                        mrjj
                                        Lifetime Qt Champion
                                        wrote on last edited by
                                        #24

                                        @Nite-Coder
                                        hehe :)
                                        it was in other location ?
                                        So hopefully now it works!

                                        1 Reply Last reply
                                        2
                                        • N Offline
                                          N Offline
                                          Nite Coder
                                          wrote on last edited by
                                          #25

                                          No... It was in the same location... I missed it...

                                          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