Best way to implement VTK 9.1 with Qt6 using QML (and Qt Quick...)

Hello everyone,
I want to implent VTK 9.1 with Qt6 in a QtQuick project, whats is the best way to proceed ? Qt6 suggests using QRhi and QSGMaterialShader for handling graphical APIs (for better abstraction) like OpenGl or Vulkan, but is this also applicable to VTK? How to use a QQuickWindow to render with VTK but without using QQMLApplication engine?
Thanks for your help


VTK provides QtQuick/ QML support via the VTK::GUISupportQtQuick module. Enable it via cmake while configuring VTK. Take a look at the module tests for example usage.

1 Like