<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT face=Consolas>Dear vtkusers,</FONT></FONT></DIV>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT face=Consolas size=3></FONT> </DIV>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT face=Consolas>Thank you all for your help. I built VTK 5.2.1 in VS2008 Pro and all examples, including three Qt examples, run successfully. I added QVTKWidget plugin to Qt Toolbox in VS2008. One thing I learned is that you can't add QVTKWidget plugin to Qt Toolbox if you build VTK with Qt 4.5.0. VS Integration 1.4.3 does not recognize any widget plugin built with Qt 4.5.0 which is newer than VS Integ 1.4.3.</FONT></FONT></DIV>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT face=Consolas size=3></FONT> </DIV>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT face=Consolas>Now I am building a "Hello World" example in VS 2008 with Qt integration. Here is my system configuration:<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></FONT></FONT></DIV>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT face=Consolas></FONT></FONT> </DIV>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT face=Consolas>1) New Project --> Qt Projects --> Qt Application<o:p></o:p></FONT></FONT></DIV>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT face=Consolas>2) Project Name: AddressBook, then click Finish button<o:p></o:p></FONT></FONT></DIV>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT face=Consolas>3) Build F7. Everything went OK and I saw a blank main window on the screen.<o:p></o:p></FONT></FONT></DIV>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT face=Consolas>4) Drag and drop a QVTKWidget on QMainWindow<o:p></o:p></FONT></FONT></DIV>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT face=Consolas>5) F5 or F7<o:p></o:p></FONT></FONT></DIV>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT face=Consolas>6) I got the following 35 error message.</FONT></FONT></DIV>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT face=Consolas></FONT></FONT> </DIV>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT face=Consolas>I tried including all kinds of QVTKWidget stuffs to my project but all failed. What is wrong?</FONT></FONT></DIV>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT face=Consolas size=3></FONT> </DIV>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT face=Consolas size=3>Thank you.</FONT></DIV>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT face=Consolas size=3>Jim</FONT></DIV>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT face=Consolas size=3></FONT> </DIV>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><o:p><FONT face=Consolas size=3>---------------------------- </FONT></o:p></DIV>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT face=Consolas>1>------ Build started: Project: AddressBook, Configuration: Debug Win32 ------<o:p></o:p></FONT></FONT></DIV>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT face=Consolas>1>Compiling...<o:p></o:p></FONT></FONT></DIV>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT face=Consolas>1>addressbook.cpp<o:p></o:p></FONT></FONT></DIV>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT face=Consolas>1>main.cpp<o:p></o:p></FONT></FONT></DIV>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT face=Consolas>1>Generating Code...<o:p></o:p></FONT></FONT></DIV>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT face=Consolas>1>Compiling...<o:p></o:p></FONT></FONT></DIV>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT face=Consolas>1>moc_addressbook.cpp<o:p></o:p></FONT></FONT></DIV>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT face=Consolas>1>Linking...<o:p></o:p></FONT></FONT></DIV>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT face=Consolas>1>addressbook.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall QVTKWidget::QVTKWidget(class QWidget *,class QFlags<enum Qt::WindowType>)" (__imp_??0QVTKWidget@@QAE@PAVQWidget@@V?$QFlags@W4WindowType@Qt@@@@@Z) referenced in function "public: void __thiscall Ui_AddressBookClass::setupUi(class QMainWindow *)" (?setupUi@Ui_AddressBookClass@@QAEXPAVQMainWindow@@@Z)<o:p></o:p></FONT></FONT></DIV>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT face=Consolas>1>addressbook.obj : error LNK2001: unresolved external symbol "public: virtual struct QMetaObject const * __thiscall QVTKWidget::metaObject(void)const " (?metaObject@QVTKWidget@@UBEPBUQMetaObject@@XZ)<o:p></o:p></FONT></FONT></DIV>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT face=Consolas>1>addressbook.obj : error LNK2001: unresolved external symbol "public: virtual void * __thiscall QVTKWidget::qt_metacast(char const *)" (?qt_metacast@QVTKWidget@@UAEPAXPBD@Z)<o:p></o:p></FONT></FONT></DIV>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT face=Consolas>1>addressbook.obj : error LNK2001: unresolved external symbol "public: virtual int __thiscall QVTKWidget::qt_metacall(enum QMetaObject::Call,int,void * *)" (?qt_metacall@QVTKWidget@@UAEHW4Call@QMetaObject@@HPAPAX@Z)<o:p></o:p></FONT></FONT></DIV>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT face=Consolas>1>addressbook.obj : error LNK2001: unresolved external symbol "protected: virtual bool __thiscall QVTKWidget::event(class QEvent *)" (?event@QVTKWidget@@MAE_NPAVQEvent@@@Z)<o:p></o:p></FONT></FONT></DIV>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT face=Consolas>1>addressbook.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall QVTKWidget::mousePressEvent(class QMouseEvent *)" (?mousePressEvent@QVTKWidget@@MAEXPAVQMouseEvent@@@Z)<o:p></o:p></FONT></FONT></DIV>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT face=Consolas>.......</FONT></FONT></DIV>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT face=Consolas size=3>.......</FONT></DIV>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT face=Consolas>1>addressbook.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall QVTKWidget::~QVTKWidget(void)" (__imp_??1QVTKWidget@@UAE@XZ) referenced in function "public: virtual void * __thiscall QVTKWidget::`scalar deleting destructor'(unsigned int)" (??_GQVTKWidget@@UAEPAXI@Z)<o:p></o:p></FONT></FONT></DIV>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT face=Consolas>1>C:\Documents and Settings\tiger\My Documents\Visual Studio 2008\Projects\AddressBook\Debug\AddressBook.exe : fatal error LNK1120: 34 unresolved externals<o:p></o:p></FONT></FONT></DIV>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT face=Consolas>1>Build log was saved at "file://c:\Documents and Settings\tiger\My Documents\Visual Studio 2008\Projects\AddressBook\AddressBook\Debug\BuildLog.htm"<o:p></o:p></FONT></FONT></DIV>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT face=Consolas>1>AddressBook - 35 error(s), 0 warning(s)<o:p></o:p></FONT></FONT></DIV>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><o:p><FONT face=Consolas size=3> </FONT></o:p></DIV></td></tr></table><br>