I'm trying to use QtCreator and QT5 on Windows to create a very basic QWebView. However no matter what I do I cannot get past the error: "QWebView: No such file or directory". I've googled this issue, I've added += webkit to my pro file, and I've tried cleaning and running qmake a number of time but nothing works. Am including contents of my .cpp and .pro file in case I'm doing something wrong somebody can point out -- the code is something I found on the web, and the .pro is mostly boilerplater created by QtCreator. Thanks in advance.

Qt Code:
  1. #include <QtGui>
  2. #include <QWebView>
  3.  
  4. int main(int argc, char** argv) {
  5.  
  6. QApplication app(argc, argv);
  7.  
  8. QWebView* view = new QWebView;
  9. view->setUrl(QUrl("http://localhost"));
  10. view->show();
  11.  
  12. return app.exec();
  13. }
To copy to clipboard, switch view to plain text mode 

Qt Code:
  1. QT += core gui webkit
  2.  
  3. greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
  4.  
  5. TARGET = QWebViewGuiTest
  6. TEMPLATE = app
  7.  
  8. SOURCES += main.cpp
To copy to clipboard, switch view to plain text mode