Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
QtWebKit/QWebView: No such file or directory
JonaDev last edited by JonaDev
I have created a GUI with just a QWebView, Set the url in the preferences (not programatically).
I am using QT 4.8.
My .pro file has QT += core gui network webkit
However, I still receive the error "QtWebKit/QWebView: No such file or directory"
To add, I am using ubuntu 14.04 to compile and have installed libqtwebkit-dev
Any help will be really appreciated.
Hi and welcome
Could you try with
QT += webkit webkitwidgets
Thank you for your reply. I have tried but still receive same error.
fatal error: QtWebKit/QWebView: No such file or directory
#include <QtWebKit/QWebView> ^
hmm and u did run qmake from menu ?
I do not see this option. I quickly created the form with Qt Designer. http://doc.qt.io/qt-4.8/designer-manual.html
I am quite new to QT, please dismiss my ignorance :(
ignorance dismissed :)
Oh, in 4.8 Designer and creator is 2 different programs.
In creator where you have the project files, there should be a Build menu?
question: you must use 4.8? Its pretty old.
I fixed it. Was my bad all along,
I looked in the created makefile and realised it was looking for the libraries in a different place. I added the libraries to this location and it compiles perfectly.
Thank you for your time.
Super. It would been my next question :)
Happy coding :)
Could you post the correct location ?