PDA

View Full Version : linking



mickey
22nd April 2006, 19:35
Hi, from designer I've created a connect from a pushbutton to a SLOT: i've included <qdateandtime.h>; nmake clean; qmake;nmake; but this eror occurs.Why?
this is declared in designer: setTime(const QTime &)



LINK : warning LNK4199: /DELAYLOAD:comdlg32.dll ignored; no imports found from comdlg32.dll
LINK : warning LNK4199: /DELAYLOAD:oleaut32.dll ignored; no imports found from oleaut32.dll
LINK : warning LNK4199: /DELAYLOAD:winmm.dll ignored; no imports found from winmm.dll
LINK : warning LNK4199: /DELAYLOAD:wsock32.dll ignored; no imports found from wsock32.dll
LINK : warning LNK4199: /DELAYLOAD:winspool.dll ignored; no imports found from winspool.dll
mymainform.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall MainForm::setTime(class QTime const &)" (?setTime@MainForm
@@UAEXABVQTime@@@Z)
mainform.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall MainForm::setTime(class QTime const &)" (?setTime@MainForm@@
UAEXABVQTime@@@Z)

wysota
22nd April 2006, 20:06
Shouldn't it be "#include <qdatetime.h>"?

mickey
22nd April 2006, 21:58
sorry, I've write it wrong only here... I've just insert it in implementation (from designer)
"qdatetime.h".......

wysota
22nd April 2006, 22:22
Could you show us the header file that uic produced from your ui?

jacek
22nd April 2006, 22:31
Have you implemented the MainForm::setTime( QTime const & ) method?

mickey
22nd April 2006, 22:37
I don't why, but designer didn't insert slot in mainform! I deleted connect and re-connect...now it's works. Thanks