QT: QTWebview is not working - c++

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.

Related

Unknown module(s) in Qt: networkauth

I am getting this error when trying to compile one C++ Qt project
Unknown module(s) in QT: networkauth
The *.pro file starts with:
QT += core gui network networkauth
It's Fedora 31 KDE, I did install qt5-qtnetworkauth and qt5-devel,
I am reading that it could be due to wrong LD_LIBRARY_PATH, but none of the changes I was trying to resolved my problem. Qt version is 5.14.1
Can someone suggest where the problem may be?
Thank you

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

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.