开发者

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 inc开发者_如何学JAVAlude 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();

}


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜