Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. [Solved] [Linux] Unknown module(s) in QT: webkitwidgets
QtWS25 Last Chance

[Solved] [Linux] Unknown module(s) in QT: webkitwidgets

Scheduled Pinned Locked Moved Qt Creator and other tools
7 Posts 2 Posters 44.4k 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.
  • V Offline
    V Offline
    vitb
    wrote on 16 Apr 2014, 13:43 last edited by
    #1

    Hi,

    I know this question is not new, but I coundn't find an answer that helps me.

    OS: Linux Mint
    Qt: 5.3.0
    Qt Creator: 3.1.81

    I downloaded Qt and compiled it with
    ./init-repository
    ./configure -developer-build
    make

    I downloaded Qt Creator and compiled it with
    qmake qtcreaotr.pro -recursive
    make

    Then in Qt Creator I set the path to the compiled qmake, for example:
    /home/dev/qt5.3.0/qtbase/bin/qmake

    When I add to the *.pro file QT += webkitwidgets it says
    Project ERROR: Unknown module(s) in QT: webkitwidgets

    -Maybe I don't have some packages installed, but I don't know which.-

    Edit: I have to correct myself. I have two Qt Creator versions. One, let's call it A, I installed with the online installer, and one, let's call it B, I compiled myself as described before. Qt Creator A recognizes the WebKit, if i point it to its qmake. But Qt Creator B cannot find it.

    Maybe I must make some configuration to compile Qt with WebKit or point Qt Creator B to the WebKit.

    1 Reply Last reply
    0
    • C Offline
      C Offline
      clochydd
      wrote on 16 Apr 2014, 16:06 last edited by
      #2

      Hi, you should use QT += webkit

      1 Reply Last reply
      0
      • V Offline
        V Offline
        vitb
        wrote on 16 Apr 2014, 17:14 last edited by
        #3

        This gives me the same error.
        Project ERROR: Unknown module(s) in QT: webkit

        1 Reply Last reply
        0
        • C Offline
          C Offline
          clochydd
          wrote on 16 Apr 2014, 17:24 last edited by
          #4

          Did you #include <QtWebKitWidgets>
          or - with QT += webkit #include <QtWebKit>

          EDIT:
          check if libqt5webkit is installed
          sudo apt-get install libqt5webkit5-dev

          1 Reply Last reply
          1
          • V Offline
            V Offline
            vitb
            wrote on 16 Apr 2014, 18:49 last edited by
            #5

            I updated my original post.

            Only the Qt Creator that I compiled myself can not find WebKit. The other Qt Creator, that I installed with the online installer, has no problems. So the problem is not the missing packages, but maybe how I compiled or configured my Qt Creator.

            It's no use to try #include <QtWebKitWidgets> or #include <QtWebKit> when the WebKit can not be found by Qt Creator, and neither QT += webkit, nor QT += webkitwidgets work.

            1 Reply Last reply
            0
            • C Offline
              C Offline
              clochydd
              wrote on 16 Apr 2014, 19:23 last edited by
              #6

              I've read your updated post and again read through the Qt Doc. I agree it must be an issue with compiling! Good luck!

              1 Reply Last reply
              0
              • V Offline
                V Offline
                vitb
                wrote on 29 Apr 2014, 12:44 last edited by
                #7

                Ok, I solved the problem with the help of a guy from the #qt IRC channel.

                It seems that the module qtwebkit isn't built while compiling Qt. To compile qtwebkit change into directory qtwebkit:

                • cd <qt path>/qtwebkit

                Create/configure Makefile:

                • ../qtbase/bin/qmake

                Compile qtwebkit:

                • make

                I don't know whether the missing compilation of qtwebkit is the expected behaviour.

                PS: Compilation of qtwebkit takes a half hour on i7-4770k.

                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