• 6809阅读
  • 1回复

[提问]我的窗口添加QWebView控件后报错 [复制链接]

上一主题 下一主题
离线my253629725
 

只看楼主 倒序阅读 楼主  发表于: 2013-03-18
我用的是Qt Creater ,我在主窗口上拖拽了一个QTabWidget控件,在QTabWidget的tab_1里拖拽了一个QWebView控件,同时在头文件pro文件里分别添加了#include <QtWebKitWidgets/QWebView>    QT += webkit ,在编译的时候还是报很多错误
mainwindow.obj : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: void __thiscall QWebView::setUrl(class QUrl const &)" (__imp_?setUrl@QWebView@@QAEXABVQUrl@@@Z)
mainwindow.obj : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: __thiscall QWebView::QWebView(class QWidget *)" (__imp_??0QWebView@@QAE@PAVQWidget@@@Z)

mainwindow.obj : error LNK2001: 无法解析的外部符号 "public: virtual struct QMetaObject const * __thiscall QWebView::metaObject(void)const " (?metaObject@QWebView@@UBEPBUQMetaObject@@XZ)

mainwindow.obj : error LNK2001: 无法解析的外部符号 "public: virtual void * __thiscall QWebView::qt_metacast(char const *)" (?qt_metacast@QWebView@@UAEPAXPBD@Z)

mainwindow.obj : error LNK2001: 无法解析的外部符号 "public: virtual int __thiscall QWebView::qt_metacall(enum QMetaObject::Call,int,void * *)" (?qt_metacall@QWebView@@UAEHW4Call@QMetaObject@@HPAPAX@Z)

mainwindow.obj : error LNK2001: 无法解析的外部符号 "public: virtual bool __thiscall QWebView::event(class QEvent *)" (?event@QWebView@@UAE_NPAVQEvent@@@Z)

mainwindow.obj : error LNK2001: 无法解析的外部符号 "public: virtual class QSize __thiscall QWebView::sizeHint(void)const " (?sizeHint@QWebView@@UBE?AVQSize@@XZ)

mainwindow.obj : error LNK2001: 无法解析的外部符号 "protected: virtual void __thiscall QWebView::mousePressEvent(class QMouseEvent *)" (?mousePressEvent@QWebView@@MAEXPAVQMouseEvent@@@Z)

mainwindow.obj : error LNK2001: 无法解析的外部符号 "protected: virtual void __thiscall QWebView::mouseReleaseEvent(class QMouseEvent *)" (?mouseReleaseEvent@QWebView@@MAEXPAVQMouseEvent@@@Z)

mainwindow.obj : error LNK2001: 无法解析的外部符号 "protected: virtual void __thiscall QWebView::mouseDoubleClickEvent(class QMouseEvent *)" (?mouseDoubleClickEvent@QWebView@@MAEXPAVQMouseEvent@@@Z)

mainwindow.obj : error LNK2001: 无法解析的外部符号 "protected: virtual void __thiscall QWebView::mouseMoveEvent(class QMouseEvent *)" (?mouseMoveEvent@QWebView@@MAEXPAVQMouseEvent@@@Z)
离线XChinux

只看该作者 1楼 发表于: 2013-03-18
QT += webkitwidgets
二笔 openSUSE Vim N9 BB10 XChinux@163.com 网易博客 腾讯微博
承接C++/Qt、Qt UI界面、PHP及预算报销系统开发业务
快速回复
限100 字节
 
上一个 下一个