ui_mainwindow.h:28: error: QtWebKitWidgets/QWebView: No such file or directory #include <QtWebKitWidgets/QWebView>
-
Pro file
QT += core gui sql
QT += network
QT += webkitwidgetsMain windows.cpp
#include <QDir>
#include <QMessageBox>
#include<QtWebKitWidgets/QWebView>
#include<QWebView>ui.MAinwindow.h
#include <QtGui/QWidget>
#include <QtWebKitWidgets/QWebView>
#include <QWebView>Qt web widget is not supported
-
WebKit is not part of Qt since Qt 5.6 if I'm not mistaken. Qt now uses webengine for the same tasks. There is a porting guide available here: https://doc.qt.io/qt-5/qtwebenginewidgets-qtwebkitportingguide.html
-
@sankarapandiyan
well, there's always building modules by hand. There are countless tutorials on how to do it, depending on your OS and target device. For more information you could take a look here: -
@sankarapandiyan said in ui_mainwindow.h:28: error: QtWebKitWidgets/QWebView: No such file or directory #include <QtWebKitWidgets/QWebView>:
qt version is Qt Creator 4.8.2
Based on Qt 5.11.3This is the version of the IDE not of the library you use. You can check the real version of Qt in the kits tab in the options.
the webview/webkit in qt 4 version
Qt 4 is ancient but if you mean using it in modern version of Qt then ther's a fork on github you can use