[vtkusers] VTK and QT Projects (QVTKWidget.h)

Alex Southern mrapsouthern at gmail.com
Fri Jul 30 11:59:22 EDT 2010


Hi,

(Not sure if I should post this here, but I think its a VTK thing rather 
than QT)

I'm sure this must be straight forward....

I have been using QT to make a project in VS 2008 Pro, Windows 7. All 
going well and then I want to add in the VTK rendering window....

Note: Yes, I installed QT first and  waited a couple of hours for it to 
build from source, then I installed VTK using cmake with the required, 
VTK_USE_QT and VTK_GUISUPPORT, everything eventually installed fine, 
cmake found the QT installation no problem and then QT demos in VTK 
examples work fine.

I copy the QVTKwidgetplugin.dll compiled by VTK over to the 
C:/QT/4.6.3/plugins/designer folder. The vtk widget shows up in the 
widgets box in QT designer when running through Visual Studio and 
standalone.

I then return to my QT project, open QT designer and add the vtkwidget 
to my desired Tab. Save All. Exit QT Designer.

Then I try to compile the project and I am presented with  "Cannot open 
include file: 'QVTKWidget.h': No such file or directory".

Note: I should add that my VTK installation is fine, my VTK projects 
still compile an run no problem.

The file exists in the VTK build folder C:\VTK\include\vtk-5.6

So Im sure this has something to do with the fact the project was never 
setup for VTK usage and I need to include the path somehow. Although I 
have had no luck so far.

Any suggestions please???

Thanks
Alex





More information about the vtkusers mailing list