Solved Qt 5.8.0 - Which module is used to show a webpage
-
I will use a Qt 5.8.0 , for that which module is supported to show a webpage.
I will be added a QT += core gui webview webengine webenginewidgetsBut till this errs will shows,
/home/nadim/Error in " Util.asciify("build-qt-pro-1-Desktop_Qt_5_8_0_GCC_64bit-Profile")": TypeError: Property 'asciify' of object Core::Internal::UtilsJsExtension(0x1dd1d10) is not a function/ui_mainwindow.h:13: error: QtWebKitWidgets/QWebView: No such file or directory
#include <QtWebKitWidgets/QWebView>
^~~~~~~~~~~~~~~~~~~~~~~~~~ -
@nadimnadaf said in Qt 5.8.0 - Which module is used to show a webpage:
#include <QtWebKitWidgets/QWebView>
Your're using the webengine not the webkit
Instead include :
#include <QWebEngineView> -
@mpergand said in Qt 5.8.0 - Which module is used to show a webpage:
Your're using the webengine not the webkit
Instead include :
#include <QWebEngineView>/home/nadim/Error in " Util.asciify("build-qt-pro-1-Desktop_Qt_5_8_0_GCC_64bit-Profile")": TypeError: Property 'asciify' of object Core::Internal::UtilsJsExtension(0x1dd1d10) is not a function/ui_mainwindow.h:34: error: ‘QWebView’ does not name a type; did you mean ‘QTreeView’?
QWebView *webView;
^~~~~~~~
QTreeViewThis Error?
-
@nadimnadaf
Once again you are using webengine not the webkit.Look at the minimal example HERE