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

Dimo picture Dimo · Sep 28, 2013 · Viewed 23.2k times · Source

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?

Answer

Dimo picture Dimo · Sep 28, 2013

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