Unknown module QT: webkit - c++

I am trying to make a simple webview in Qt 5.6
in my .pro file I have
QT += webkitwidgets
I have this Error:
:-1: error: Unknown module(s) in QT: webkitwidgets

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

How to install websockets for Qt 6?

Already referred below old posts, but its solution of installing websockets didn't work in my Ubuntu 21.10.
Project ERROR: Unknown module(s) in QT: websockets
Project ERROR: Unknown module(s) in QT: webkitwidgets
This could be probably due to my Qt is 6.2, while the available library is from Qt5, viz. libqt5websockets5-dev.
How to install websocket module properly for the Qt6, to fix below error?
Project ERROR: Unknown module(s) in QT: websockets
When installing Qt via Qt Maintenance Tool, just go to Additional Libraries and check QtWebSockets. It is available in Qt 6.2.x versions.

QT: qmake not recognising 3dcore, 3drender

I am using qmake to compile my QT project. In my .pro file I have a line:
QT += 3dcore 3drender 3dinput 3dextras
When executing qmake myprofile.pro I get the error:
Project ERROR: Unknown module(s) in QT: 3dcore 3drender 3dinput 3dextras
I am using Ubuntu17 and have QT5 installed. How can I get it to work with qmake? I am including libraries like <Qt3DCore> in my code so I require these modules as suggested here.
3dcore introduced in Qt 5.7, ubuntu 17 had only 5.6 by default. If you have such problems, you need to update library.

Unknown module(s) in QT: webkit webkitwidgets creating a click package on Ubuntu

hope you're well. Does anyone know how to solve this error
:-1: error: Unknown module(s) in QT: webkit webkitwidgets creating a click package:-1: error: Unknown module(s) in QT: webkit webkitwidgets
when creating a click package? Already installed:
sudo apt-get install libqt5webkit5-dev
It was working well so far debugging locally but getting the error back when trying to publish my programme. Thanks in advance!
Use webengine and webenginewidgets instead.
webkit and other related classes has been replaced by webengine .
Go through the following guide to learm how to port webkit project to webengine project.
http://wiki.qt.io/QtWebEngine/Porting_from_QtWebKit

QT: QTWebview is not working

My operating System: Windows 7 64bit
QT Version: QT Creator 4.2.0 based on QT 5.7.1(MSVC 2015, 32 bit)
The QWebview widget is not displayed in my mainwindow.ui file.
I already tried following steps:
-QT += webkitwidgets or QT+= webenginewidgets
-include <QTWebView> or include <QTWebEngineView>
After using the above commands i got this project error:
Project ERROR: Unknown module(s) in QT: webenginewidgets
I also tried to reinstall the QT Creator, but i still got the same problem, i cant use any web-related widgets(Webkit/WebEngineView, ...).
Thanks for your help.
Best regards.

Unknown module(s) in QT: webkit

Added QT += network webkit and I tried just QT += webkit to the .pro solution file and ran qmake from inside the QtCreator and got this error:
error: Unknown module(s) in QT: webkit
I really need to make use of these includes:
#include <QWebView>
#include <QUrl>
Any ideas?
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.