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

Project ERROR: Unknown module(s) in QT: webkitwidgets

Scheduled Pinned Locked Moved Solved General and Desktop
31 Posts 3 Posters 38.5k 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.
  • Cobra91151C Cobra91151

    @mrjj

    Thanks. Also I have checked C:\Qt\5.7\msvc2015\mkspecs\modules directory and qt_lib_webview.pri module exists but not qt_lib_webkitwidgets.pri. So I need to build it by myself?

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

    @Cobra91151

    Hi,
    There is downloads as link says
    https://github.com/annulen/webkit/releases

    So i think there is no need to build one yourself if you can find the right version

    There is
    qtwebkit_tp4_qt57_msvc2015_x64.zip
    which might suit you fine?

    1 Reply Last reply
    1
    • Cobra91151C Offline
      Cobra91151C Offline
      Cobra91151
      wrote on last edited by Cobra91151
      #5

      @mrjj

      Ok. I need x86. So I have downloaded the qtwebkit_tp4_qt57_msvc2015_x86.zip.

      For example:
      Path: C:\Qt\5.7\msvc2015

      So I need to copy it to the Qt directory?

      mrjjM 1 Reply Last reply
      0
      • Cobra91151C Cobra91151

        @mrjj

        Ok. I need x86. So I have downloaded the qtwebkit_tp4_qt57_msvc2015_x86.zip.

        For example:
        Path: C:\Qt\5.7\msvc2015

        So I need to copy it to the Qt directory?

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

        @Cobra91151
        Thats a good question how to correctly install.
        But yes, it should be copied into place so the module etc works
        but never tried it myself :)

        There is no install doc in zip or anything like that?

        Cobra91151C 3 Replies Last reply
        1
        • mrjjM mrjj

          @Cobra91151
          Thats a good question how to correctly install.
          But yes, it should be copied into place so the module etc works
          but never tried it myself :)

          There is no install doc in zip or anything like that?

          Cobra91151C Offline
          Cobra91151C Offline
          Cobra91151
          wrote on last edited by
          #7

          @mrjj

          Yes. It compiles. Thank you.

          1 Reply Last reply
          1
          • mrjjM mrjj

            @Cobra91151
            Thats a good question how to correctly install.
            But yes, it should be copied into place so the module etc works
            but never tried it myself :)

            There is no install doc in zip or anything like that?

            Cobra91151C Offline
            Cobra91151C Offline
            Cobra91151
            wrote on last edited by Cobra91151
            #8

            @mrjj

            The problem now is with the object:

            test.h
            QtWebView *mapBrowserView;

            Errors:

            error: C2143: syntax error: missing ';' before '*'
            error: C4430: missing type specifier - int assumed. Note: C++ does not support default-int
            

            0_1504343524118_2017-09-02_121132.png

            So it doesn't work. I think installation should be different.

            Using QtWebKit in your project
            https://github.com/annulen/webkit/wiki/Using-QtWebKit-in-your-project

            I will try to compile it.

            1 Reply Last reply
            0
            • mrjjM mrjj

              @Cobra91151
              Thats a good question how to correctly install.
              But yes, it should be copied into place so the module etc works
              but never tried it myself :)

              There is no install doc in zip or anything like that?

              Cobra91151C Offline
              Cobra91151C Offline
              Cobra91151
              wrote on last edited by
              #9

              @mrjj

              It's all already compiled, so I don't need to recompile anything. It seems I have circular include QtWebView but I included it only once. It's strange.

              mrjjM 1 Reply Last reply
              0
              • Cobra91151C Cobra91151

                @mrjj

                It's all already compiled, so I don't need to recompile anything. It seems I have circular include QtWebView but I included it only once. It's strange.

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

                @Cobra91151
                Ok, i assume it would be precompiled as else no reason for compiler versions.

                • It seems I have circular include QtWebView but I included it only once. It's strange.

                You can turn on Include view and see if something shows up
                alt text

                Cobra91151C 1 Reply Last reply
                0
                • mrjjM mrjj

                  @Cobra91151
                  Ok, i assume it would be precompiled as else no reason for compiler versions.

                  • It seems I have circular include QtWebView but I included it only once. It's strange.

                  You can turn on Include view and see if something shows up
                  alt text

                  Cobra91151C Offline
                  Cobra91151C Offline
                  Cobra91151
                  wrote on last edited by Cobra91151
                  #11

                  @mrjj

                  My includes screenshot:

                  0_1504379887391_2017-09-02_221614.png

                  Maybe this project has (https://github.com/annulen/webkit/releases) circular include, or bugs in the code.
                  Also I have downloaded qtwebview-opensource-src-5.7.1 from official Qt source. But I don't know where to install it? Is there any documentation link how to install submodules? Thanks.

                  mrjjM 1 Reply Last reply
                  0
                  • Cobra91151C Cobra91151

                    @mrjj

                    My includes screenshot:

                    0_1504379887391_2017-09-02_221614.png

                    Maybe this project has (https://github.com/annulen/webkit/releases) circular include, or bugs in the code.
                    Also I have downloaded qtwebview-opensource-src-5.7.1 from official Qt source. But I don't know where to install it? Is there any documentation link how to install submodules? Thanks.

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

                    @Cobra91151 said in Project ERROR: Unknown module(s) in QT: webkitwidgets:

                    But I don't know where to install it? Is there any documentation link how to install submodules? Thanks.

                    Hi, normally you would do
                    qmake
                    make
                    make install

                    for such a source zip

                    Cobra91151C 2 Replies Last reply
                    1
                    • mrjjM mrjj

                      @Cobra91151 said in Project ERROR: Unknown module(s) in QT: webkitwidgets:

                      But I don't know where to install it? Is there any documentation link how to install submodules? Thanks.

                      Hi, normally you would do
                      qmake
                      make
                      make install

                      for such a source zip

                      Cobra91151C Offline
                      Cobra91151C Offline
                      Cobra91151
                      wrote on last edited by
                      #13

                      @mrjj

                      I will try it. Thanks.

                      1 Reply Last reply
                      0
                      • mrjjM mrjj

                        @Cobra91151 said in Project ERROR: Unknown module(s) in QT: webkitwidgets:

                        But I don't know where to install it? Is there any documentation link how to install submodules? Thanks.

                        Hi, normally you would do
                        qmake
                        make
                        make install

                        for such a source zip

                        Cobra91151C Offline
                        Cobra91151C Offline
                        Cobra91151
                        wrote on last edited by Cobra91151
                        #14

                        @mrjj

                        I get 'qmake' is not recognized as an internal or external command, operable program or batch file. when running on qtwebview-opensource-src-5.7.1 (Developer Command Prompt for VS2015)?

                        I have these files after extraction from archive:

                        0_1504441548484_2017-09-03_152519.png

                        Should I copy these files to the path: C:\Qt\5.7\Src\qtbase and qmake
                        make
                        make install?

                        Cobra91151C 1 Reply Last reply
                        0
                        • Cobra91151C Cobra91151

                          @mrjj

                          I get 'qmake' is not recognized as an internal or external command, operable program or batch file. when running on qtwebview-opensource-src-5.7.1 (Developer Command Prompt for VS2015)?

                          I have these files after extraction from archive:

                          0_1504441548484_2017-09-03_152519.png

                          Should I copy these files to the path: C:\Qt\5.7\Src\qtbase and qmake
                          make
                          make install?

                          Cobra91151C Offline
                          Cobra91151C Offline
                          Cobra91151
                          wrote on last edited by
                          #15

                          @Cobra91151

                          I have reinstall Qt 5.7.1 and my .pro include is QT += widgets core gui network webview concurrent

                          test.h
                          #include <QtWebView>

                          But the error is the same when initialize QtWebView *mapBrowserView;

                          QtWebView is not the class, it is the namespace, image:

                          0_1504444228036_2017-09-03_160851.png

                          1 Reply Last reply
                          0
                          • Cobra91151C Offline
                            Cobra91151C Offline
                            Cobra91151
                            wrote on last edited by
                            #16

                            Now I have figured it out - Qt WebView provides a way to display web content in a QML application but I'm developing Win API application only for Windows OS. So it will not work.

                            1 Reply Last reply
                            0
                            • Cobra91151C Offline
                              Cobra91151C Offline
                              Cobra91151
                              wrote on last edited by
                              #17

                              So here is how I have fixed it:

                              1. Copy the contents of the archive qtwebkit_tp4_qt57_msvc2015_x86.zip to C:\Qt\5.7\msvc2015;
                              2. Include webkitwidgets to .pro file;
                              3. Include #include <QtWebKitWidgets/QWebView>
                              4. Initialized the QWebView *mapBrowserView; object;

                              Now it's all compile and work.

                              1 Reply Last reply
                              1
                              • V Offline
                                V Offline
                                vadak
                                wrote on last edited by
                                #18

                                @Cobra91151 Hi i also face same issue, you have any Qtwebkitwidgets install setup document?

                                V 1 Reply Last reply
                                0
                                • V vadak

                                  @Cobra91151 Hi i also face same issue, you have any Qtwebkitwidgets install setup document?

                                  V Offline
                                  V Offline
                                  vadak
                                  wrote on last edited by
                                  #19

                                  @vadak Hi @mrjj ,i am facing one issue related to QT:webkitwidgets unknown module ,please help to solve this issue and now i am using QT5.7 and OS windows10 and i downloaded qtwebkit_tp4_qt57_msvc2015_x64.zip .
                                  any setup document need for this? i am new to QT.

                                  mrjjM 1 Reply Last reply
                                  0
                                  • V vadak

                                    @vadak Hi @mrjj ,i am facing one issue related to QT:webkitwidgets unknown module ,please help to solve this issue and now i am using QT5.7 and OS windows10 and i downloaded qtwebkit_tp4_qt57_msvc2015_x64.zip .
                                    any setup document need for this? i am new to QT.

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

                                    @vadak

                                    Hi
                                    Did you try to copy as Cobra91151 wrote ?

                                    As far as I know there is no extra documentation available.

                                    1 Reply Last reply
                                    0
                                    • V Offline
                                      V Offline
                                      vadak
                                      wrote on last edited by
                                      #21

                                      @mrjj,no i am not copying anythink from @Cobra91151 ,and i also faceing same issue but i don't know how to add qtwebkit_tp4_qt57_msvc2015_x64.zip to my Qt5.7 MSVC2015 compiler.

                                      1 Reply Last reply
                                      0
                                      • mrjjM Offline
                                        mrjjM Offline
                                        mrjj
                                        Lifetime Qt Champion
                                        wrote on last edited by
                                        #22

                                        So you didnt try like he wrote ?

                                        V 1 Reply Last reply
                                        0
                                        • mrjjM mrjj

                                          So you didnt try like he wrote ?

                                          V Offline
                                          V Offline
                                          vadak
                                          wrote on last edited by
                                          #23

                                          @mrjj yes

                                          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