开发者

Problems with including QWebView in QT application

开发者 https://www.devze.com 2023-02-06 17:20 出处:网络
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\".

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

精彩评论

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