Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot open include file: 'QWebView': No such file or directory

Tags:

c++

qt

qtwebkit

I have followed the instructions on the following page:

http://qt-project.org/wiki/Open_Web_Page_in_QWebView

I added QT += webkit in my pro file and ran qmake, then clean all and compile again. I still get:

error: C1083: Cannot open include file: 'QWebView': No such file or directory

when I add #include <QWebView> in header and cpp file. Any ideas?

like image 672
Dimo Avatar asked Sep 28 '13 11:09

Dimo


3 Answers

I had to add QT += webkit webkitwidgets as well in the pro file for it to work.

like image 70
Dimo Avatar answered Nov 18 '22 05:11

Dimo


I had to add the libqtwebkit-dev package for my app to compile.

like image 45
Francois Botha Avatar answered Nov 18 '22 04:11

Francois Botha


I ran into the same issue on Kubuntu 18.10. My development environment was for Qt5 and I needed to install

libqt5webkit5-dev

apt install libqt5webkit5-dev

like image 1
Rick Timmis Avatar answered Nov 18 '22 04:11

Rick Timmis