BrainSpace
BrainSpace copied to clipboard
feat: enable Qt backend for image rendering
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.