我在 QT4设计起里面一添加 这个QWebView 就报错。 编译的时候。就报错
对应错误/home/snail/study/tcp/tcp/ui_main_.h:43: undefined reference to `QWebView::QWebView(QWidget*)' 对应代码 webView = new QWebView(centralWidget);
对应错误/home/snail/study/tcp/tcp/ui_main_.h:46: undefined reference to `QWebView::setUrl(QUrl const&)对应代码webView->setUrl(QUrl("about:blank"));
:-1: error: collect2: ld returned 1 exit status
这些都是 QT自动生成代码,怎么会出错呢?