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 39.4k 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.
  • C Cobra91151
    2 Sept 2017, 08:43

    @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?

    M Offline
    M Offline
    mrjj
    Lifetime Qt Champion
    wrote on 2 Sept 2017, 08:45 last edited by mrjj 9 Feb 2017, 08:48
    #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
    • C Offline
      C Offline
      Cobra91151
      wrote on 2 Sept 2017, 08:53 last edited by Cobra91151 9 Feb 2017, 08:56
      #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?

      M 1 Reply Last reply 2 Sept 2017, 08:57
      0
      • C Cobra91151
        2 Sept 2017, 08:53

        @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?

        M Offline
        M Offline
        mrjj
        Lifetime Qt Champion
        wrote on 2 Sept 2017, 08:57 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?

        C 3 Replies Last reply 2 Sept 2017, 09:00
        1
        • M mrjj
          2 Sept 2017, 08:57

          @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?

          C Offline
          C Offline
          Cobra91151
          wrote on 2 Sept 2017, 09:00 last edited by
          #7

          @mrjj

          Yes. It compiles. Thank you.

          1 Reply Last reply
          1
          • M mrjj
            2 Sept 2017, 08:57

            @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?

            C Offline
            C Offline
            Cobra91151
            wrote on 2 Sept 2017, 09:13 last edited by Cobra91151 9 Feb 2017, 09:27
            #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
            • M mrjj
              2 Sept 2017, 08:57

              @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?

              C Offline
              C Offline
              Cobra91151
              wrote on 2 Sept 2017, 19:05 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.

              M 1 Reply Last reply 2 Sept 2017, 19:14
              0
              • C Cobra91151
                2 Sept 2017, 19:05

                @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.

                M Offline
                M Offline
                mrjj
                Lifetime Qt Champion
                wrote on 2 Sept 2017, 19:14 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

                C 1 Reply Last reply 2 Sept 2017, 19:18
                0
                • M mrjj
                  2 Sept 2017, 19:14

                  @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

                  C Offline
                  C Offline
                  Cobra91151
                  wrote on 2 Sept 2017, 19:18 last edited by Cobra91151 9 Feb 2017, 19:25
                  #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.

                  M 1 Reply Last reply 2 Sept 2017, 19:51
                  0
                  • C Cobra91151
                    2 Sept 2017, 19:18

                    @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.

                    M Offline
                    M Offline
                    mrjj
                    Lifetime Qt Champion
                    wrote on 2 Sept 2017, 19:51 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

                    C 2 Replies Last reply 3 Sept 2017, 09:08
                    1
                    • M mrjj
                      2 Sept 2017, 19:51

                      @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

                      C Offline
                      C Offline
                      Cobra91151
                      wrote on 3 Sept 2017, 09:08 last edited by
                      #13

                      @mrjj

                      I will try it. Thanks.

                      1 Reply Last reply
                      0
                      • M mrjj
                        2 Sept 2017, 19:51

                        @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

                        C Offline
                        C Offline
                        Cobra91151
                        wrote on 3 Sept 2017, 12:23 last edited by Cobra91151 9 Mar 2017, 12:38
                        #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?

                        C 1 Reply Last reply 3 Sept 2017, 13:10
                        0
                        • C Cobra91151
                          3 Sept 2017, 12:23

                          @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?

                          C Offline
                          C Offline
                          Cobra91151
                          wrote on 3 Sept 2017, 13:10 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
                          • C Offline
                            C Offline
                            Cobra91151
                            wrote on 3 Sept 2017, 13:31 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
                            • C Offline
                              C Offline
                              Cobra91151
                              wrote on 3 Sept 2017, 13:50 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 28 Nov 2017, 01:07 last edited by
                                #18

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

                                V 1 Reply Last reply 28 Nov 2017, 08:30
                                0
                                • V vadak
                                  28 Nov 2017, 01:07

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

                                  V Offline
                                  V Offline
                                  vadak
                                  wrote on 28 Nov 2017, 08:30 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.

                                  M 1 Reply Last reply 28 Nov 2017, 09:51
                                  0
                                  • V vadak
                                    28 Nov 2017, 08:30

                                    @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.

                                    M Offline
                                    M Offline
                                    mrjj
                                    Lifetime Qt Champion
                                    wrote on 28 Nov 2017, 09:51 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 28 Nov 2017, 09:57 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
                                      • M Offline
                                        M Offline
                                        mrjj
                                        Lifetime Qt Champion
                                        wrote on 28 Nov 2017, 09:59 last edited by
                                        #22

                                        So you didnt try like he wrote ?

                                        V 1 Reply Last reply 28 Nov 2017, 11:52
                                        0
                                        • M mrjj
                                          28 Nov 2017, 09:59

                                          So you didnt try like he wrote ?

                                          V Offline
                                          V Offline
                                          vadak
                                          wrote on 28 Nov 2017, 11:52 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