#include <QApplication>
#include <QWebView>
#include <QUrl>
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
QWebView view;
view.setStyleSheet("background-color:rgb(150,147,88); padding: 7px ; color:rgb(255,255,255)");
view.load(QUrl("
http://www.devdiv.com"));
view.showMaximized();
return a.exec();
}
提示:
../test7/main.cpp:2:20: error: QWebView:
没有那个文件或
目录../test7/main.cpp: In function ‘int main(int, char**)’:
../test7/main.cpp:9: error: ‘QWebView’ was
not declared in this scope
../test7/main.cpp:9: error: expected ‘;’ before ‘view’
../test7/main.cpp:10: error: ‘view’ was not declared in this scope