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?
I had to add QT += webkit webkitwidgets
as well in the pro file for it to work.
I had to add the libqtwebkit-dev
package for my app to compile.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With