Reputation: 8035
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
Reputation: 1974
Did you add in your Project_name.pro file in Qt Creator line like this: QT += core gui webkit ?
Upvotes: 2