Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
QWebView object is missing in Dİsplay Widgets
I have Qt Creator based on Qt 5.9.1. I want to add QWebView on the form but I can not drag and drop because it is missing.
because it is missing since Qt 5.6 - QtWebkit module is deprecated since then and not part of release bundles.
read more here
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 <QUrl> libraries
4- In the constructor of cpp file QVBoxLayout* _layout=new QVBoxLayout(this);
alyama last edited by
@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 status
I am really bad at instructions. What does this mean?
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