Dear all
I'm trying to add a system tray icon to my application.
The target system is Windows XP (sp2) and the QT version is 4.2.2
I have added a QSystemTrayIcon to my main class, a menù and some actions, following this tutorial. The code compiles, the problem is during linking time. There are some symbols my Visual Studio (7.1) cannot find. The errors are are:
error LNK2001: unresolved external symbol "protected: virtual bool __thiscall QSystemTrayIcon::event(class QEvent *)" (?event@QSystemTrayIcon@@MAE_NPAVQEvent@@@Z)
error LNK2001: unresolved external symbol "public: virtual int __thiscall QSystemTrayIcon::qt_metacall(enum QMetaObject::Call,int,void * *)" (?qt_metacall@QSystemTrayIcon@@UAEHW4Call@QMetaObj ect@@HPAPAX@Z)
error LNK2001: unresolved external symbol "public: virtual void * __thiscall QSystemTrayIcon::qt_metacast(char const *)" (?qt_metacast@QSystemTrayIcon@@UAEPAXPBD@Z)
error LNK2001: unresolved external symbol "public: virtual struct QMetaObject const * __thiscall QSystemTrayIcon::metaObject(void)const " (?metaObject@QSystemTrayIcon@@UBEPBUQMetaObject@@X Z)
error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall QSystemTrayIcon::setContextMenu(class QMenu *)" (__imp_?setContextMenu@QSystemTrayIcon@@QAEXPAVQMe nu@@@Z)
error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall QSystemTrayIcon::QSystemTrayIcon(class QObject *)" (__imp_??0QSystemTrayIcon@@QAE@PAVQObject@@@Z)
error LNK2019: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall QSystemTrayIcon::~QSystemTrayIcon(void)" (__imp_??1QSystemTrayIcon@@UAE@XZ) referenced in function "public: virtual void * __thiscall QSystemTrayIcon::`scalar deleting destructor'(unsigned int)" (??_GQSystemTrayIcon@@UAEPAXI@Z)
Could someone help me to understand how can I solve this issue?
Thanks in advance
Bookmarks