我正在Visual Studio 2017中设置Qt和Opencv。首先使用Qt进行构建,然后再添加Opencv库,但出现问题:
Severity Code Description Project File Line Suppression State
Error LNK2019 unresolved external symbol "__declspec(dllimport) public: __thiscall QApplication::QApplication(int &,char * *,int)" (__imp_??0QApplication@@QAE@AAHPAPADH@Z) referenced in function _main QtGuiApplication1 C:\Users\DienVu-PC\source\repos\QtGuiApplication1\main.obj 1
Error LNK2019 unresolved external symbol "__declspec(dllimport) public: virtual __thiscall QApplication::~QApplication(void)" (__imp_??1QApplication@@UAE@XZ) referenced in function _main QtGuiApplication1 C:\Users\DienVu-PC\source\repos\QtGuiApplication1\main.obj 1
Error LNK2019 unresolved external symbol "__declspec(dllimport) public: static int __cdecl QApplication::exec(void)" (__imp_?exec@QApplication@@SAHXZ) referenced in function _main QtGuiApplication1 C:\Users\DienVu-PC\source\repos\QtGuiApplication1\main.obj 1
Error LNK2019 unresolved external symbol "__declspec(dllimport) public: static void __cdecl QMetaObject::connectSlotsByName(class QObject *)" (__imp_?connectSlotsByName@QMetaObject@@SAXPAVQObject@@@Z) referenced in function "public: void __thiscall Ui_QtGuiApplication1Class::setupUi(class QMainWindow *)" (?setupUi@Ui_QtGuiApplication1Class@@QAEXPAVQMainWindow@@@Z) QtGuiApplication1 C:\Users\DienVu-PC\source\repos\QtGuiApplication1\QtGuiApplication1.obj 1
Error LNK2019 unresolved external symbol "__declspec(dllimport) public: __thiscall QString::~QString(void)" (__imp_??1QString@@QAE@XZ) referenced in function "public: void __thiscall Ui_QtGuiApplication1Class::retranslateUi(class QMainWindow *)" (?retranslateUi@Ui_QtGuiApplication1Class@@QAEXPAVQMainWindow@@@Z) QtGuiApplication1 C:\Users\DienVu-PC\source\repos\QtGuiApplication1\QtGuiApplication1.obj 1
Error LNK2019 unresolved external symbol "__declspec(dllimport) public: bool __thiscall QString::isEmpty(void)const " (__imp_?isEmpty@QString@@QBE_NXZ) referenced in function "public: void __thiscall Ui_QtGuiApplication1Class::setupUi(class QMainWindow *)" (?setupUi@Ui_QtGuiApplication1Class@@QAEXPAVQMainWindow@@@Z) QtGuiApplication1 C:\Users\DienVu-PC\source\repos\QtGuiApplication1\QtGuiApplication1.obj 1
Error LNK2019 unresolved external symbol "__declspec(dllimport) public: static class QString __cdecl QString::fromUtf8(char const *,int)" (__imp_?fromUtf8@QString@@SA?AV1@PBDH@Z) referenced in function "public: void __thiscall Ui_QtGuiApplication1Class::setupUi(class QMainWindow *)" (?setupUi@Ui_QtGuiApplication1Class@@QAEXPAVQMainWindow@@@Z) QtGuiApplication1 C:\Users\DienVu-PC\source\repos\QtGuiApplication1\QtGuiApplication1.obj 1
Error LNK2019 unresolved external symbol "__declspec(dllimport) public: class QString __thiscall QObject::objectName(void)const " (__imp_?objectName@QObject@@QBE?AVQString@@XZ) referenced in function "public: void __thiscall Ui_QtGuiApplication1Class::setupUi(class QMainWindow *)" (?setupUi@Ui_QtGuiApplication1Class@@QAEXPAVQMainWindow@@@Z) QtGuiApplication1 C:\Users\DienVu-PC\source\repos\QtGuiApplication1\QtGuiApplication1.obj 1
Error LNK2019 unresolved external symbol "__declspec(dllimport) public: void __thiscall QObject::setObjectName(class QString const &)" (__imp_?setObjectName@QObject@@QAEXABVQString@@@Z) referenced in function "public: void __thiscall Ui_QtGuiApplication1Class::setupUi(class QMainWindow *)" (?setupUi@Ui_QtGuiApplication1Class@@QAEXPAVQMainWindow@@@Z) QtGuiApplication1 C:\Users\DienVu-PC\source\repos\QtGuiApplication1\QtGuiApplication1.obj 1
Error LNK2019 unresolved external symbol "__declspec(dllimport) public: __thiscall QWidget::QWidget(class QWidget *,class QFlags<enum Qt::WindowType>)" (__imp_??0QWidget@@QAE@PAV0@V?$QFlags@W4WindowType@Qt@@@@@Z) referenced in function "public: void __thiscall Ui_QtGuiApplication1Class::setupUi(class QMainWindow *)" (?setupUi@Ui_QtGuiApplication1Class@@QAEXPAVQMainWindow@@@Z) QtGuiApplication1 C:\Users\DienVu-PC\source\repos\QtGuiApplication1\QtGuiApplication1.obj 1
Error LNK2019 unresolved external symbol "__declspec(dllimport) public: virtual __thiscall QWidget::~QWidget(void)" (__imp_??1QWidget@@UAE@XZ) referenced in function "public: virtual void * __thiscall QWidget::`scalar deleting destructor'(unsigned int)" (??_GQWidget@@UAEPAXI@Z) QtGuiApplication1 C:\Users\DienVu-PC\source\repos\QtGuiApplication1\QtGuiApplication1.obj 1
Error LNK2019 unresolved external symbol "__declspec(dllimport) public: void __thiscall QWidget::setWindowTitle(class QString const &)" (__imp_?setWindowTitle@QWidget@@QAEXABVQString@@@Z) referenced in function "public: void __thiscall Ui_QtGuiApplication1Class::retranslateUi(class QMainWindow *)" (?retranslateUi@Ui_QtGuiApplication1Class@@QAEXPAVQMainWindow@@@Z) QtGuiApplication1 C:\Users\DienVu-PC\source\repos\QtGuiApplication1\QtGuiApplication1.obj 1
Error LNK2019 unresolved external symbol "__declspec(dllimport) public: void __thiscall QWidget::resize(int,int)" (__imp_?resize@QWidget@@QAEXHH@Z) referenced in function "public: void __thiscall Ui_QtGuiApplication1Class::setupUi(class QMainWindow *)" (?setupUi@Ui_QtGuiApplication1Class@@QAEXPAVQMainWindow@@@Z) QtGuiApplication1 C:\Users\DienVu-PC\source\repos\QtGuiApplication1\QtGuiApplication1.obj 1
Error LNK2019 unresolved external symbol "__declspec(dllimport) public: __thiscall QMainWindow::QMainWindow(class QWidget *,class QFlags<enum Qt::WindowType>)" (__imp_??0QMainWindow@@QAE@PAVQWidget@@V?$QFlags@W4WindowType@Qt@@@@@Z) referenced in function "public: __thiscall QtGuiApplication1::QtGuiApplication1(class QWidget *)" (??0QtGuiApplication1@@QAE@PAVQWidget@@@Z) QtGuiApplication1 C:\Users\DienVu-PC\source\repos\QtGuiApplication1\QtGuiApplication1.obj 1
Error LNK2019 unresolved external symbol "__declspec(dllimport) public: void __thiscall QMainWindow::setMenuBar(class QMenuBar *)" (__imp_?setMenuBar@QMainWindow@@QAEXPAVQMenuBar@@@Z) referenced in function "public: void __thiscall Ui_QtGuiApplication1Class::setupUi(class QMainWindow *)" (?setupUi@Ui_QtGuiApplication1Class@@QAEXPAVQMainWindow@@@Z) QtGuiApplication1 C:\Users\DienVu-PC\source\repos\QtGuiApplication1\QtGuiApplication1.obj 1
Error LNK2019 unresolved external symbol "__declspec(dllimport) public: void __thiscall QMainWindow::setStatusBar(class QStatusBar *)" (__imp_?setStatusBar@QMainWindow@@QAEXPAVQStatusBar@@@Z) referenced in function "public: void __thiscall Ui_QtGuiApplication1Class::setupUi(class QMainWindow *)" (?setupUi@Ui_QtGuiApplication1Class@@QAEXPAVQMainWindow@@@Z) QtGuiApplication1 C:\Users\DienVu-PC\source\repos\QtGuiApplication1\QtGuiApplication1.obj 1
Error LNK2019 unresolved external symbol "__declspec(dllimport) public: void __thiscall QMainWindow::setCentralWidget(class QWidget *)" (__imp_?setCentralWidget@QMainWindow@@QAEXPAVQWidget@@@Z) referenced in function "public: void __thiscall Ui_QtGuiApplication1Class::setupUi(class QMainWindow *)" (?setupUi@Ui_QtGuiApplication1Class@@QAEXPAVQMainWindow@@@Z) QtGuiApplication1 C:\Users\DienVu-PC\source\repos\QtGuiApplication1\QtGuiApplication1.obj 1
Error LNK2019 unresolved external symbol "__declspec(dllimport) public: void __thiscall QMainWindow::addToolBar(class QToolBar *)" (__imp_?addToolBar@QMainWindow@@QAEXPAVQToolBar@@@Z) referenced in function "public: void __thiscall Ui_QtGuiApplication1Class::setupUi(class QMainWindow *)" (?setupUi@Ui_QtGuiApplication1Class@@QAEXPAVQMainWindow@@@Z) QtGuiApplication1 C:\Users\DienVu-PC\source\repos\QtGuiApplication1\QtGuiApplication1.obj 1
Error LNK2019 unresolved external symbol "__declspec(dllimport) public: static class QString __cdecl QCoreApplication::translate(char const *,char const *,char const *,int)" (__imp_?translate@QCoreApplication@@SA?AVQString@@PBD00H@Z) referenced in function "public: void __thiscall Ui_QtGuiApplication1Class::retranslateUi(class QMainWindow *)" (?retranslateUi@Ui_QtGuiApplication1Class@@QAEXPAVQMainWindow@@@Z) QtGuiApplication1 C:\Users\DienVu-PC\source\repos\QtGuiApplication1\QtGuiApplication1.obj 1
Error LNK2019 unresolved external symbol "__declspec(dllimport) public: __thiscall QMenuBar::QMenuBar(class QWidget *)" (__imp_??0QMenuBar@@QAE@PAVQWidget@@@Z) referenced in function "public: void __thiscall Ui_QtGuiApplication1Class::setupUi(class QMainWindow *)" (?setupUi@Ui_QtGuiApplication1Class@@QAEXPAVQMainWindow@@@Z) QtGuiApplication1 C:\Users\DienVu-PC\source\repos\QtGuiApplication1\QtGuiApplication1.obj 1
Error LNK2019 unresolved external symbol "__declspec(dllimport) public: virtual __thiscall QMenuBar::~QMenuBar(void)" (__imp_??1QMenuBar@@UAE@XZ) referenced in function "public: virtual void * __thiscall QMenuBar::`scalar deleting destructor'(unsigned int)" (??_GQMenuBar@@UAEPAXI@Z) QtGuiApplication1 C:\Users\DienVu-PC\source\repos\QtGuiApplication1\QtGuiApplication1.obj 1
Error LNK2019 unresolved external symbol "__declspec(dllimport) public: __thiscall QStatusBar::QStatusBar(class QWidget *)" (__imp_??0QStatusBar@@QAE@PAVQWidget@@@Z) referenced in function "public: void __thiscall Ui_QtGuiApplication1Class::setupUi(class QMainWindow *)" (?setupUi@Ui_QtGuiApplication1Class@@QAEXPAVQMainWindow@@@Z) QtGuiApplication1 C:\Users\DienVu-PC\source\repos\QtGuiApplication1\QtGuiApplication1.obj 1
Error LNK2019 unresolved external symbol "__declspec(dllimport) public: virtual __thiscall QStatusBar::~QStatusBar(void)" (__imp_??1QStatusBar@@UAE@XZ) referenced in function "public: virtual void * __thiscall QStatusBar::`scalar deleting destructor'(unsigned int)" (??_GQStatusBar@@UAEPAXI@Z) QtGuiApplication1 C:\Users\DienVu-PC\source\repos\QtGuiApplication1\QtGuiApplication1.obj 1
Error LNK2019 unresolved external symbol "__declspec(dllimport) public: __thiscall QToolBar::QToolBar(class QWidget *)" (__imp_??0QToolBar@@QAE@PAVQWidget@@@Z) referenced in function "public: void __thiscall Ui_QtGuiApplication1Class::setupUi(class QMainWindow *)" (?setupUi@Ui_QtGuiApplication1Class@@QAEXPAVQMainWindow@@@Z) QtGuiApplication1 C:\Users\DienVu-PC\source\repos\QtGuiApplication1\QtGuiApplication1.obj 1
Error LNK2019 unresolved external symbol "__declspec(dllimport) public: virtual __thiscall QToolBar::~QToolBar(void)" (__imp_??1QToolBar@@UAE@XZ) referenced in function "public: virtual void * __thiscall QToolBar::`scalar deleting destructor'(unsigned int)" (??_GQToolBar@@UAEPAXI@Z) QtGuiApplication1 C:\Users\DienVu-PC\source\repos\QtGuiApplication1\QtGuiApplication1.obj 1
Error LNK2001 unresolved external symbol "protected: virtual void __thiscall QMenuBar::actionEvent(class QActionEvent *)" (?actionEvent@QMenuBar@@MAEXPAVQActionEvent@@@Z) QtGuiApplication1 C:\Users\DienVu-PC\source\repos\QtGuiApplication1\QtGuiApplication1.obj 1
Error LNK2001 unresolved external symbol "protected: virtual void __thiscall QToolBar::actionEvent(class QActionEvent *)" (?actionEvent@QToolBar@@MAEXPAVQActionEvent@@@Z) QtGuiApplication1 C:\Users\DienVu-PC\source\repos\QtGuiApplication1\QtGuiApplication1.obj 1
Error LNK2001 unresolved external symbol "protected: virtual void __thiscall QWidget::actionEvent(class QActionEvent *)" (?actionEvent@QWidget@@MAEXPAVQActionEvent@@@Z) QtGuiApplication1 C:\Users\DienVu-PC\source\repos\QtGuiApplication1\QtGuiApplication1.obj 1
Error LNK2001 unresolved external symbol "protected: virtual void __thiscall QMenuBar::changeEvent(class QEvent *)" (?changeEvent@QMenuBar@@MAEXPAVQEvent@@@Z) QtGuiApplication1 C:\Users\DienVu-PC\source\repos\QtGuiApplication1\QtGuiApplication1.obj 1
Error LNK2001 unresolved external symbol "protected: virtual void __thiscall QToolBar::changeEvent(class QEvent *)" (?changeEvent@QToolBar@@MAEXPAVQEvent@@@Z) QtGuiApplication1 C:\Users\DienVu-PC\source\repos\QtGuiApplication1\QtGuiApplication1.obj 1
Error LNK2001 unresolved external symbol "protected: virtual void __thiscall QWidget::changeEvent(class QEvent *)" (?changeEvent@QWidget@@MAEXPAVQEvent@@@Z) QtGuiApplication1 C:\Users\DienVu-PC\source\repos\QtGuiApplication1\QtGuiApplication1.obj 1
Error LNK2001 unresolved external symbol "protected: virtual void __thiscall QObject::childEvent(class QChildEvent *)" (?childEvent@QObject@@MAEXPAVQChildEvent@@@Z) QtGuiApplication1 C:\Users\DienVu-PC\source\repos\QtGuiApplication1\QtGuiApplication1.obj 1
Error LNK2001 unresolved external symbol "protected: virtual void __thiscall QWidget::closeEvent(class QCloseEvent *)" (?closeEvent@QWidget@@MAEXPAVQCloseEvent@@@Z) QtGuiApplication1 C:\Users\DienVu-PC\source\repos\QtGuiApplication1\QtGuiApplication1.obj 1
Error LNK2001 unresolved external symbol "protected: virtual void __thiscall QObject::connectNotify(class QMetaMethod const &)" (?connectNotify@QObject@@MAEXABVQMetaMethod@@@Z) QtGuiApplication1 C:\Users\DienVu-PC\source\repos\QtGuiApplication1\QtGuiApplication1.obj 1
Error LNK2001 unresolved external symbol "protected: virtual void __thiscall QMainWindow::contextMenuEvent(class QContextMenuEvent *)" (?contextMenuEvent@QMainWindow@@MAEXPAVQContextMenuEvent@@@Z) QtGuiApplication1 C:\Users\DienVu-PC\source\repos\QtGuiApplication1\QtGuiApplication1.obj 1
Error LNK2001 unresolved external symbol "protected: virtual void __thiscall QWidget::contextMenuEvent(class QContextMenuEvent *)" (?contextMenuEvent@QWidget@@MAEXPAVQContextMenuEvent@@@Z) QtGuiApplication1 C:\Users\DienVu-PC\source\repos\QtGuiApplication1\QtGuiApplication1.obj 1
Error LNK2001 unresolved external symbol "public: virtual class QMenu * __thiscall QMainWindow::createPopupMenu(void)" (?createPopupMenu@QMainWindow@@UAEPAVQMenu@@XZ) QtGuiApplication1 C:\Users\DienVu-PC\source\repos\QtGuiApplication1\QtGuiApplication1.obj 1
Error LNK2001 unresolved external symbol "protected: virtual void __thiscall QObject::customEvent(class QEvent *)" (?customEvent@QObject@@MAEXPAVQEvent@@@Z) QtGuiApplication1 C:\Users\DienVu-PC\source\repos\QtGuiApplication1\QtGuiApplication1.obj 1
Error LNK2001 unresolved external symbol "public: virtual int __thiscall QWidget::devType(void)const " (?devType@QWidget@@UBEHXZ) QtGuiApplication1 C:\Users\DienVu-PC\source\repos\QtGuiApplication1\QtGuiApplication1.obj 1
Error LNK2001 unresolved external symbol "protected: virtual void __thiscall QObject::disconnectNotify(class QMetaMethod const &)" (?disconnectNotify@QObject@@MAEXABVQMetaMethod@@@Z) QtGuiApplication1 C:\Users\DienVu-PC\source\repos\QtGuiApplication1\QtGuiApplication1.obj 1
Error LNK2001 unresolved external symbol "protected: virtual void __thiscall QWidget::dragEnterEvent(class QDragEnterEvent *)" (?dragEnterEvent@QWidget@@MAEXPAVQDragEnterEvent@@@Z) QtGuiApplication1 C:\Users\DienVu-PC\source\repos\QtGuiApplication1\QtGuiApplication1.obj 1
Error LNK2001 unresolved external symbol "protected: virtual void __thiscall QWidget::dragLeaveEvent(class QDragLeaveEvent *)" (?dragLeaveEvent@QWidget@@MAEXPAVQDragLeaveEvent@@@Z) QtGuiApplication1 C:\Users\DienVu-PC\source\repos\QtGuiApplication1\QtGuiApplication1.obj 1
Error LNK2001 unresolved external symbol "protected: virtual void __thiscall QWidget::dragMoveEvent(class QDragMoveEvent *)" (?dragMoveEvent@QWidget@@MAEXPAVQDragMoveEvent@@@Z) QtGuiApplication1 C:\Users\DienVu-PC\source\repos\QtGuiApplication1\QtGuiApplication1.obj 1
Error LNK2001 unresolved external symbol "protected: virtual void __thiscall QWidget::dropEvent(class QDropEvent *)" (?dropEvent@QWidget@@MAEXPAVQDropEvent@@@Z) QtGuiApplication1 C:\Users\DienVu-PC\source\repos\QtGuiApplication1\QtGuiApplication1.obj 1
Error LNK2001 unresolved external symbol "protected: virtual void __thiscall QWidget::enterEvent(class QEvent *)" (?enterEvent@QWidget@@MAEXPAVQEvent@@@Z) QtGuiApplication1 C:\Users\DienVu-PC\source\repos\QtGuiApplication1\QtGuiApplication1.obj 1
Error LNK2001 unresolved external symbol "protected: virtual bool __thiscall QMainWindow::event(class QEvent *)" (?event@QMainWindow@@MAE_NPAVQEvent@@@Z) QtGuiApplication1 C:\Users\DienVu-PC\source\repos\QtGuiApplication1\QtGuiApplication1.obj 1
Error LNK2001 unresolved external symbol "protected: virtual bool __thiscall QMenuBar::event(class QEvent *)" (?event@QMenuBar@@MAE_NPAVQEvent@@@Z) QtGuiApplication1 C:\Users\DienVu-PC\source\repos\QtGuiApplication1\QtGuiApplication1.obj 1
Error LNK2001 unresolved external symbol "protected: virtual bool __thiscall QStatusBar::event(class QEvent *)" (?event@QStatusBar@@MAE_NPAVQEvent@@@Z) QtGuiApplication1 C:\Users\DienVu-PC\source\repos\QtGuiApplication1\QtGuiApplication1.obj 1
Error LNK2001 unresolved external symbol "protected: virtual bool __thiscall QToolBar::event(class QEvent *)" (?event@QToolBar@@MAE_NPAVQEvent@@@Z) QtGuiApplication1 C:\Users\DienVu-PC\source\repos\QtGuiApplication1\QtGuiApplication1.obj 1
Error LNK2001 unresolved external symbol "protected: virtual bool __thiscall QWidget::event(class QEvent *)" (?event@QWidget@@MAE_NPAVQEvent@@@Z) QtGuiApplication1 C:\Users\DienVu-PC\source\repos\QtGuiApplication1\QtGuiApplication1.obj 1
Error LNK2001 unresolved external symbol "protected: virtual bool __thiscall QMenuBar::eventFilter(class QObject *,class QEvent *)" (?eventFilter@QMenuBar@@MAE_NPAVQObject@@PAVQEvent@@@Z) QtGuiApplication1 C:\Users\DienVu-PC\source\repos\QtGuiApplication1\QtGuiApplication1.obj 1
Error LNK2001 unresolved external symbol "public: virtual bool __thiscall QObject::eventFilter(class QObject *,class QEvent *)" (?eventFilter@QObject@@UAE_NPAV1@PAVQEvent@@@Z) QtGuiApplication1 C:\Users\DienVu-PC\source\repos\QtGuiApplication1\QtGuiApplication1.obj 1
Error LNK2001 unresolved external symbol "protected: virtual void __thiscall QMenuBar::focusInEvent(class QFocusEvent *)" (?focusInEvent@QMenuBar@@MAEXPAVQFocusEvent@@@Z) QtGuiApplication1 C:\Users\DienVu-PC\source\repos\QtGuiApplication1\QtGuiApplication1.obj 1
Error LNK2001 unresolved external symbol "protected: virtual void __thiscall QWidget::focusInEvent(class QFocusEvent *)" (?focusInEvent@QWidget@@MAEXPAVQFocusEvent@@@Z) QtGuiApplication1 C:\Users\DienVu-PC\source\repos\QtGuiApplication1\QtGuiApplication1.obj 1
Error LNK2001 unresolved external symbol "protected: virtual bool __thiscall QWidget::focusNextPrevChild(bool)" (?focusNextPrevChild@QWidget@@MAE_N_N@Z) QtGuiApplication1 C:\Users\DienVu-PC\source\repos\QtGuiApplication1\QtGuiApplication1.obj 1
Error LNK2001 unresolved external symbol "protected: virtual void __thiscall QMenuBar::focusOutEvent(class QFocusEvent *)" (?focusOutEvent@QMenuBar@@MAEXPAVQFocusEvent@@@Z) QtGuiApplication1 C:\Users\DienVu-PC\source\repos\QtGuiApplication1\QtGuiApplication1.obj 1
Error LNK2001 unresolved external symbol "protected: virtual void __thiscall QWidget::focusOutEvent(class QFocusEvent *)" (?focusOutEvent@QWidget@@MAEXPAVQFocusEvent@@@Z) QtGuiApplication1 C:\Users\DienVu-PC\source\repos\QtGuiApplication1\QtGuiApplication1.obj 1
Error LNK2001 unresolved external symbol "public: virtual bool __thiscall QWidget::hasHeightForWidth(void)const " (?hasHeightForWidth@QWidget@@UBE_NXZ) QtGuiApplication1 C:\Users\DienVu-PC\source\repos\QtGuiApplication1\QtGuiApplication1.obj 1
Error LNK2001 unresolved external symbol "public: virtual int __thiscall QMenuBar::heightForWidth(int)const " (?heightForWidth@QMenuBar@@UBEHH@Z) QtGuiApplication1 C:\Users\DienVu-PC\source\repos\QtGuiApplication1\QtGuiApplication1.obj 1
Error LNK2001 unresolved external symbol "public: virtual int __thiscall QWidget::heightForWidth(int)const " (?heightForWidth@QWidget@@UBEHH@Z) QtGuiApplication1 C:\Users\DienVu-PC\source\repos\QtGuiApplication1\QtGuiApplication1.obj 1
Error LNK2001 unresolved external symbol "protected: virtual void __thiscall QWidget::hideEvent(class QHideEvent *)" (?hideEvent@QWidget@@MAEXPAVQHideEvent@@@Z) QtGuiApplication1 C:\Users\DienVu-PC\source\repos\QtGuiApplication1\QtGuiApplication1.obj 1
Error LNK2001 unresolved external symbol "protected: virtual void __thiscall QWidget::initPainter(class QPainter *)const " (?initPainter@QWidget@@MBEXPAVQPainter@@@Z) QtGuiApplication1 C:\Users\DienVu-PC\source\repos\QtGuiApplication1\QtGuiApplication1.obj 1
Error LNK2001 unresolved external symbol "protected: virtual void __thiscall QWidget::inputMethodEvent(class QInputMethodEvent *)" (?inputMethodEvent@QWidget@@MAEXPAVQInputMethodEvent@@@Z) QtGuiApplication1 C:\Users\DienVu-PC\source\repos\QtGuiApplication1\QtGuiApplication1.obj 1
Error LNK2001 unresolved external symbol "public: virtual class QVariant __thiscall QWidget::inputMethodQuery(enum Qt::InputMethodQuery)const " (?inputMethodQuery@QWidget@@UBE?AVQVariant@@W4InputMethodQuery@Qt@@@Z) QtGuiApplication1 C:\Users\DienVu-PC\source\repos\QtGuiApplication1\QtGuiApplication1.obj 1
Error LNK2001 unresolved external symbol "protected: virtual void __thiscall QMenuBar::keyPressEvent(class QKeyEvent *)" (?keyPressEvent@QMenuBar@@MAEXPAVQKeyEvent@@@Z) QtGuiApplication1 C:\Users\DienVu-PC\source\repos\QtGuiApplication1\QtGuiApplication1.obj 1
Error LNK2001 unresolved external symbol "protected: virtual void __thiscall QWidget::keyPressEvent(class QKeyEvent *)" (?keyPressEvent@QWidget@@MAEXPAVQKeyEvent@@@Z) QtGuiApplication1 C:\Users\DienVu-PC\source\repos\QtGuiApplication1\QtGuiApplication1.obj 1
Error LNK2001 unresolved external symbol "protected: virtual void __thiscall QWidget::keyReleaseEvent(class QKeyEvent *)" (?keyReleaseEvent@QWidget@@MAEXPAVQKeyEvent@@@Z) QtGuiApplication1 C:\Users\DienVu-PC\source\repos\QtGuiApplication1\QtGuiApplication1.obj 1
Error LNK2001 unresolved external symbol "protected: virtual void __thiscall QMenuBar::leaveEvent(class QEvent *)" (?leaveEvent@QMenuBar@@MAEXPAVQEvent@@@Z) QtGuiApplication1 C:\Users\DienVu-PC\source\repos\QtGuiApplication1\QtGuiApplication1.obj 1
Error LNK2001 unresolved external symbol "protected: virtual void __thiscall QWidget::leaveEvent(class QEvent *)" (?leaveEvent@QWidget@@MAEXPAVQEvent@@@Z) QtGuiApplication1 C:\Users\DienVu-PC\source\repos\QtGuiApplication1\QtGuiApplication1.obj 1
Error LNK2001 unresolved external symbol "public: virtual struct QMetaObject const * __thiscall QMenuBar::metaObject(void)const " (?metaObject@QMenuBar@@UBEPBUQMetaObject@@XZ) QtGuiApplication1 C:\Users\DienVu-PC\source\repos\QtGuiApplication1\QtGuiApplication1.obj 1
Error LNK2001 unresolved external symbol "public: virtual struct QMetaObject const * __thiscall QStatusBar::metaObject(void)const " (?metaObject@QStatusBar@@UBEPBUQMetaObject@@XZ) QtGuiApplication1 C:\Users\DienVu-PC\source\repos\QtGuiApplication1\QtGuiApplication1.obj 1
Error LNK2001 unresolved external symbol "public: virtual struct QMetaObject const * __thiscall QToolBar::metaObject(void)const " (?metaObject@QToolBar@@UBEPBUQMetaObject@@XZ) QtGuiApplication1 C:\Users\DienVu-PC\source\repos\QtGuiApplication1\QtGuiApplication1.obj 1
Visual Studio还注意到无法启动程序C:\ Users \ DienVu-PC \ source \ repos \ QtGuiApplication1 \ Win32 \ Debug \ QtGuiApplication1.exe和 系统找不到指定的文件