vtkInteractorStyles that draw selected area fail with QQuickVtkItem

Hi @Tomasso, my guess is you’re running into threading issues. QtQuick uses a threaded scenegraph with a main thread and a separate render thread. VTK draw calls should just be made on the render thread. This is why QQuickVTKItem exposes a dispatch_async method to “schedule” tasks on the render thread. The interactor styles you mentioned aren’t aware of this and likely try to make render calls on the main thread. You’d have to subclass the style and use dispatch_async wherever it makes direct Render calls.

1 Like