<html><body><span style="font-family:Verdana; color:#000; font-size:10pt;"><div>I've just started using Qt and VTK on 64-bit Windows.&nbsp; I built both Qt and VTK from source code and installed them without problem, and installed the VS-Qt plugin.&nbsp; I downloaded a couple of Qt-VTK C++ example projects.&nbsp; I built the project file for VS2010 with Cmake.&nbsp; These example projects compile and run fine and without errors.&nbsp; After this I began to build my first Qt-VTK project with VS2010(no Cmake).&nbsp; I designed a simple user interface with the Qt designer.&nbsp; It has a tab control, QVTKWidget, and a splitter between them.&nbsp; There are no slots defined.&nbsp; When I changed the name of the QVTKWidget object it caused Intellisense errors, as it said that the ui class did not contain this new name.&nbsp; I remedied this by converted the project to a Qt add-in (Is this a good thing to do?).&nbsp; I then added a few member variables to the qwindow derived class, and the corresponding include statements.&nbsp; When I tried to compile this I got errors regarding function definitions or something.&nbsp; To fix this I added the proper libraries to the additional dependencies in the Linker\Input setting.&nbsp; This confused me, as i thought it would link to the .dll files defined elsewhere, and not to the static .lib files.&nbsp; Is this correct?&nbsp; The Qt-VTK example projects link to the .lib files, but I didn't think it was necessary considering the presence of the .dll's.&nbsp; Everything built fine, and the interface would popup if I ran it, but the qvtkwidget didn't have anything in it, it was transparent, and when I dragged the mouse across it I got access violations.&nbsp; So I started to add an object for rendering into the qwindows constructor code.&nbsp; I added this code from one of the examples:</div><div>vtkSmartPointer&lt;vtkSphereSource&gt; sphereSource = <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; vtkSmartPointer&lt;vtkSphereSource&gt;::New();<br>&nbsp; sphereSource-&gt;Update();<br>&nbsp; vtkSmartPointer&lt;vtkPolyDataMapper&gt; sphereMapper =<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; vtkSmartPointer&lt;vtkPolyDataMapper&gt;::New();<br>&nbsp; sphereMapper-&gt;SetInputConnection(sphereSource-&gt;GetOutputPort());<br>&nbsp; vtkSmartPointer&lt;vtkActor&gt; sphereActor = <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; vtkSmartPointer&lt;vtkActor&gt;::New();<br>&nbsp; sphereActor-&gt;SetMapper(sphereMapper);<br></div><div><br></div><div>It compiles fine and I run it and get this error in a message box:</div><div>Unhandled exception at 0x000000013f751e3c in QTVTKRender.exe: 0xC0000005: Access violation reading location 0x0000000000000000.<br></div><div><br></div><div>And in the command window I get a generic warning: In... (this path leads to the source code where I compiled the VTK)</div><div>And the next line I get: Error: no override found for 'vtkPolyDataMapper'.</div><div><br></div><div>The user interface never appears and I have to break out.&nbsp; I put a break point on the constructor, and the code never even reaches it.&nbsp; Any ideas what is going on here?</div><div><br></div><div>Thanks,</div><div>Sean<br></div></span></body></html>