Unknown module(s) in QT: webkit - c++

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.

Related

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.

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 QT: webkit

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.

Moving from Qt 4.x (Ubuntu Linux) to Qt 5.1 (Windows 7)

I made a program by using Qt Creator in Qt 4.x on an Ubuntu Linux platform in the last year. Now I don't use linux, instead I use Windows 7. I once again need my program which I made last year. I downloaded and installed Qt Creator onto Windows 7 platform. It came with Qt 5.1. I try to rebuilt it. I got below messages. What should I do?
C1083: Cannot open include file: 'QtGui/QApplication': No such file or directory
C1083: Cannot open include file: 'QDialog': No such file or directory
Thanks
In Qt5 QApplication is no longer part of QtGui module, it's now in QtWidgets. In your #include directive use <QtWidgets/QApplication>, the same applies to QDialog.
Use this in your .pro file.
QT += ...
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
The Qt modules have been rearranged somewhat in Qt5. Also this will teach for leaving Linux!
There's a good guide on what has changed from QT 4.x to 5.x http://qt-project.org/wiki/Transition_from_Qt_4.x_to_Qt5

QtSerialPort QSerialPort no such file or directory

I use this tutorial : http://doc-snapshot.qt-project.org/qt5-stable/qtserialport/blockingmaster.html
But when I want to run it Qt Creator generates the following error:
error: Unknown module(s) in QT: serialport
When I hold mouse on #include <QtSerialPort/QSerialPort> it says:
include no such file or directory
I use Qt 5.0.1 any idea?
Try including #include <QtSerialPort/QSerialPort> instead of
#include <QSerialPort>, that worked for me
QtSerialPort module is not part of Qt 5.0. It was added to the upcoming release Qt 5.1.
You are looking at the documentation snapshot for the upcoming release Qt 5.1. See http://doc-snapshot.qt-project.org/qt5-stable/qtdoc/index.html.
The documentation for Qt 5.0 is here: http://qt-project.org/doc/qt-5.0/qtdoc/index.html.
If you still want to try QtSerialPort, the RC1 of Qt 5.1 was just released. You can download it here: http://download.qt-project.org/development_releases/qt/5.1/5.1.0-rc1/
try including
#include <QtSerialPort/QSerialPort>
also update your project.pro file, add this flag
QT += serialport
after that clean , qmake , rebuild the project