-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
VTKOverlayWindow does not show up #181
Comments
Thanks for this. Can you please let me know what operating system you're running on? I've had similar problems on Linux (Ubuntu) but not macos or Windows. |
I'm running Ubuntu 20.04 |
QVTKRenderWinderInteractor.py seems to be a copy of the same file in the main VTK repository, I'm not sure why we have our own copy of it in scikit-surgeryvtk, @tdowrick might know. In commit 4714cd2 I've set us up to use the native VTK version which seems to be OK in terms of unit tests etc. However it still has the same problem for me (ubuntu 20.04) as you're getting. So then this becomes a VTK bug. I found this https://gitlab.kitware.com/vtk/vtk/-/issues/17957 on their issue tracker which doesn't fill me with hope. I'll keep digging though. One quick fix for you might be to set the vtk<9.0.0 in requirements.txt which should use vtk 8.something which did work. |
Thanks! I really appreciate that you looked into this. Yea, I figured it might have to do with VTK 9.1 that they have changed it. |
…o avoid conflict with qt binaries.
At the time we started using QVTKRenderWinderInteractor PySide2 wasn't supported, so I copied the file and made the relevant changes. From looking at the most recent official version, then have included PySide2 support now, so assuming unit tests are passing, and probably with a bit of manual checking, it should be fine to go back to using the main VTK file. |
…ting on py37 and py38" This reverts commit c4f25cf.
…easily set where we call Inialize and Start
…easily set where we call Inialize and Start
Some example code cannot run on my system because VTKOverlayWindow does not show up, I figured QVTKRenderWindowInteractor cannot Initialize() without passing a QObject (QWidget or QMainWindow) as parent.
Therefore, this example does not run on my system.
My environment:
Python 3.8.10
PyQt5 & PySide2
vtk 9.1
My solution:
Then add this at the end.
Afterwards I can see the rendering window pop up.
The text was updated successfully, but these errors were encountered: