DixieFlatline
DixieFlatline

Reputation: 8035

Problems with including QWebView in QT application

I am using qt creator. I wanted to show a webpage inside QWebView, but my projet doesn't compile. When i want to include QWebView, editor says "no such file or directory". My code:

#include <QApplication>
#include <QUrl>
#include <QWebView>


int main(int argc, char *argv[])
 {
QApplication a(argc, argv);

QWebView view;
view.showMaximized();

return a.exec();

}

Upvotes: 1

Views: 1639

Answers (1)

Johnny
Johnny

Reputation: 1974

Did you add in your Project_name.pro file in Qt Creator line like this: QT += core gui webkit ?

Upvotes: 2

Related Questions