VPoint / C-Arm_Prototype

0 stars 0 forks source link

In Qt, find vtk widget #3

Open ghost opened 5 years ago

jacqui35 commented 5 years ago

VTK Build Configuration:

With VTK 6: VTK_Group_Qt (didn't choose) Module_vtkGUISupportQt (instead) Module_vtkGUISupportQtOpenGL (instead) BUILD_SHARED_LIBS Module_vtkTestingCore (extra) Module_vtkTestingRendering (extra)

If your Qt was not built with Webkit, VTK_Group_Qt will complain. Instead, set VTK_Group_Qt=OFF, Module_vtkGUISupportQt=ON, and Module_vtkGUISupportQtOpenGL=ON. You must have configured Qt with -opengl (and maybe -multimedia?) or you will get a "Qt QTOPENGL library not found." CMake error when configuring VTK.

Note: You MUST build in Release mode.

image

VTK Builded Successfully in Visual Studio 2017 image

Internet was mysteriously slow in Lees: image

Still cannot found the plugins on the Qt creator after putting the qvtkwidget dll and lib file to the respective qt designer folders. Might need to build Qt with the same version of Visual Studio and settings etc..

jacqui35 commented 5 years ago

Memo: https://stackoverflow.com/questions/29905655/combining-qt-5-4-1-with-vtk-6-2-0-using-cmake-gui-3-2-1-on-windows

https://stackoverflow.com/questions/30892773/building-vtk-with-qt5-windows-8

http://hxr99.blogspot.com/2013/03/qt-vtk-displaying-dicom-series-using.html

https://stackoverflow.com/questions/26585499/getting-the-vtk-widget-working-with-qt-creator