commontk / CTK

A set of common support code for medical imaging, surgical navigation, and related purposes.
https://commontk.org
Apache License 2.0
858 stars 490 forks source link

When CTK_USE_QVTKOPENGLWIDGET is enabled, vtkRenderWindow's SetCurrentCursor() does not work. #856

Open bmeAtnju opened 5 years ago

bmeAtnju commented 5 years ago

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.

lassoan commented 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.

bmeAtnju commented 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.

Thank you for reply.