Project Error: Unknown Module(S) in Qt: Webkitwidgets

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

You need to install the webkitwidgets library.

On Ubuntu, try this in a terminal:

sudo apt-get install libqt5webkit5-dev

On Fedora, the package has a different name, thus try:

sudo apt-get install qt5-qtwebkit-devel

Or on Fedora, via dnf:

sudo dnf install qt5-qtwebkit-devel

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

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.

Unknown module(s) in QT: webkit

If you say you installed the beta version I suppose you installed Qt version 5. In that case webkit module does not exist anymore. You need webkitwidgets:

QT += webkitwidgets

That will add the module needed to use QWebView. QUrl is in the core module, so you don't need the network module.

Unknown module QT: webkit

Starting from Qt 5.6 Qt WebKit was removed:

https://wiki.qt.io/New_Features_in_Qt_5.6

With Qt 5.6 the following modules are no longer part of the release packages, but users can still build them from source: Qt WebKit

So if you still want to use WebKit you need 5.5 or earlier or you need to build your own version from sources.



Related Topics



Leave a reply



Submit