您的位置:首页 > 编程语言 > Qt开发

QT5.7 VS2013 Echarts

2016-08-09 18:10 239 查看
QT5.7 VS2013 Echarts vsaddin 1.2.5

编译成功,但是运行时候出现如下问题:

------ Build started: Project: EchartTest, Configuration: Debug Win32 ------

1>echarttest.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall QWebEngineView::QWebEngineView(class QWidget *)" (__imp_??0QWebEngineView@@QAE@PAVQWidget@@@Z) referenced in function "public: void __thiscall Ui_EchartTestClass::setupUi(class
QMainWindow *)" (?setupUi@Ui_EchartTestClass@@QAEXPAVQMainWindow@@@Z)

1>echarttest.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall QWebEngineView::~QWebEngineView(void)" (__imp_??1QWebEngineView@@UAE@XZ) referenced in function "public: virtual void * __thiscall QWebEngineView::`scalar
deleting destructor'(unsigned int)" (??_GQWebEngineView@@UAEPAXI@Z)

1>echarttest.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall QWebEngineView::load(class QUrl const &)" (__imp_?load@QWebEngineView@@QAEXABVQUrl@@@Z) referenced in function "private: void __thiscall EchartTest::on_btnLine_clicked(void)"
(?on_btnLine_clicked@EchartTest@@AAEXXZ)

1>echarttest.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall QWebEngineView::setUrl(class QUrl const &)" (__imp_?setUrl@QWebEngineView@@QAEXABVQUrl@@@Z) referenced in function "public: void __thiscall Ui_EchartTestClass::setupUi(class
QMainWindow *)" (?setupUi@Ui_EchartTestClass@@QAEXPAVQMainWindow@@@Z)

1>echarttest.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall QWebEngineView::contextMenuEvent(class QContextMenuEvent *)" (?contextMenuEvent@QWebEngineView@@MAEXPAVQContextMenuEvent@@@Z)

1>echarttest.obj : error LNK2001: unresolved external symbol "protected: virtual class QWebEngineView * __thiscall QWebEngineView::createWindow(enum QWebEnginePage::WebWindowType)" (?createWindow@QWebEngineView@@MAEPAV1@W4WebWindowType@QWebEnginePage@@@Z)

1>echarttest.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall QWebEngineView::dragEnterEvent(class QDragEnterEvent *)" (?dragEnterEvent@QWebEngineView@@MAEXPAVQDragEnterEvent@@@Z)

1>echarttest.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall QWebEngineView::dragLeaveEvent(class QDragLeaveEvent *)" (?dragLeaveEvent@QWebEngineView@@MAEXPAVQDragLeaveEvent@@@Z)

1>echarttest.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall QWebEngineView::dragMoveEvent(class QDragMoveEvent *)" (?dragMoveEvent@QWebEngineView@@MAEXPAVQDragMoveEvent@@@Z)

1>echarttest.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall QWebEngineView::dropEvent(class QDropEvent *)" (?dropEvent@QWebEngineView@@MAEXPAVQDropEvent@@@Z)

1>echarttest.obj : error LNK2001: unresolved external symbol "protected: virtual bool __thiscall QWebEngineView::event(class QEvent *)" (?event@QWebEngineView@@MAE_NPAVQEvent@@@Z)

1>echarttest.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall QWebEngineView::hideEvent(class QHideEvent *)" (?hideEvent@QWebEngineView@@MAEXPAVQHideEvent@@@Z)

1>echarttest.obj : error LNK2001: unresolved external symbol "public: virtual struct QMetaObject const * __thiscall QWebEngineView::metaObject(void)const " (?metaObject@QWebEngineView@@UBEPBUQMetaObject@@XZ)

1>echarttest.obj : error LNK2001: unresolved external symbol "public: virtual int __thiscall QWebEngineView::qt_metacall(enum QMetaObject::Call,int,void * *)" (?qt_metacall@QWebEngineView@@UAEHW4Call@QMetaObject@@HPAPAX@Z)

1>echarttest.obj : error LNK2001: unresolved external symbol "public: virtual void * __thiscall QWebEngineView::qt_metacast(char const *)" (?qt_metacast@QWebEngineView@@UAEPAXPBD@Z)

1>echarttest.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall QWebEngineView::showEvent(class QShowEvent *)" (?showEvent@QWebEngineView@@MAEXPAVQShowEvent@@@Z)

1>echarttest.obj : error LNK2001: unresolved external symbol "public: virtual class QSize __thiscall QWebEngineView::sizeHint(void)const " (?sizeHint@QWebEngineView@@UBE?AVQSize@@XZ)

1>C:\Users\david.yang\documents\visual studio 2013\Projects\EchartTest\Win32\Debug\\EchartTest.exe : fatal error LNK1120: 17 unresolved externals

========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

缺少:Qt5WebEngineWidgetsd.lib

添加:project->propoerties(alt+f7)->linker->additional dependencies

qtmaind.lib

Qt5Cored.lib

Qt5Guid.lib

Qt5Widgetsd.lib

Qt5WebViewd.lib

Qt5WebEngineWidgetsd.lib

运行成功
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: