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

Hello, do you have any suggestions/examples on how to use Qt6, QML, QtQuick in a VTK Python project?


@bistek, I don’t think so. If you do investigate and get it up and running, please consider contributing the example to vtk.