Open bmeAtnju opened 5 years ago
This is not related to CTK. In recent VTK versions, you had to use QVTKOpenGLWidget::setQVTKCursor. In latest VTK master simple setCursor is supposed to work again.
This is not related to CTK. In recent VTK versions, you had to use QVTKOpenGLWidget::setQVTKCursor. In latest VTK master simple setCursor is supposed to work again.
Thank you for reply.
In the CMakeList.txt: set(_use_qvtkopenglwidget 1) if(CTK_QT_VERSION VERSION_LESS "5" OR VTK_VERSION VERSION_LESS "8" OR (NOT VTK_RENDERING_BACKEND STREQUAL "OpenGL2")) set(_use_qvtkopenglwidget 0) endif() if(_use_qvtkopenglwidget) add_definitions(-DCTK_USE_QVTKOPENGLWIDGET) endif() When CTK_USE_QVTKOPENGLWIDGET is defined, vtkRenderWindow's SetCurrentCursor() wouldn't work any more. My platform is Windows 10.