BrainSpace icon indicating copy to clipboard operation
BrainSpace copied to clipboard

feat: enable Qt backend for image rendering

Open RicardoRyn opened this issue 5 months ago • 0 comments

When I try to create a Plotter object and call its .show() method, an interactive windos pops up as expected. However, after I mamually close the window, the program hangs and does not proceed.

I found that the issue occurs here. Specifically, when the poped window is closed manually, the code does not terminate as expected and gets stuck at this line, never moving forward. The root cause might be related to VTK's event handling, but I am not very familiar with VTK.

To make the .show() method usable, I attempted to use Qt to rendering, which led to this PR. The goal is to leverage Qt's event loop to ensure the program can continue properly after the window is closed.

RicardoRyn avatar Jul 27 '25 03:07 RicardoRyn