QWebView object is missing in Dİsplay Widgets
-
@aysenur
because it is missing since Qt 5.6 - QtWebkit module is deprecated since then and not part of release bundles. -
read more here
https://forum.qt.io/topic/76739/webkit-status-2017 -
I have QT 5.9 and there is not QtWebKit Module. I downloaded the package from the following link http://download.qt.io/community_releases/5.9/5.9.0-rc2/ . Where to copy it? Also under /usr/lib/x8664-linux-gnu/ there are many files about libQt5WebKit . What does this mean?
Thank you inadvance. -
-
Thank you for your helps. I have solved the problem by using QWebEngineWidgets instead of QtWebKitView.
1- In pro file I added QT += webenginewidgets .
2-In header of the file I declared QWebEngineView* _view; object
3- in the .cpp file I added #include <QtWebEngineWidgets/QWebEngineView>
#include <QVBoxLayout>
#include <QUrl> libraries
4- In the constructor of cpp file QVBoxLayout* _layout=new QVBoxLayout(this);
_view=new QWebEngineView(this);
_view->load(QUrl("http://www.goole.com"));
_view->show();
_layout->addWidget(_view); -
@aysenur this post was 2 years ago, but I still hope to get a response.
I have the same problem to. I follow your instructions from 1 to 4.
But I got this error, I am also using Qt 5.9 version
cannot find -IGL
collect2: error: Id returned 1 exit statusI am really bad at instructions. What does this mean?
-
@alyama Hi and welcome!
said in QWebView object is missing in Dİsplay Widgets:What does this mean?
It means that you did not install Mesa dev package.
Do this (I assume you're using a debian derivate like Ubuntu, as you did not tell anything about your OS):sudo apt-get install build-essential libgl1-mesa-dev