I create a new project and I try this example
#include <QApplication>
#include <QtWebKit/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.google.com"));
view.showMaximized();
return a.exec();
}
I have many errors:
undefined reference to 'QWebView::QWebView(QWidget *)'
undefined reference to 'QWebView::load(qUrl const &)'
I need help, thanks

Reply With Quote

