Skip to content
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

vtkplotter and PyQt #45

Closed
hmralavi opened this issue Aug 8, 2019 · 2 comments
Closed

vtkplotter and PyQt #45

hmralavi opened this issue Aug 8, 2019 · 2 comments
Labels

Comments

@hmralavi
Copy link

hmralavi commented Aug 8, 2019

Hello Marco,
I need to work with 3D meshes inside my PyQt GUI.
As you might know, using vtk.qt.QVTKRenderWindowInteractor we can add a vtk renderer window to our PyQt.
I was wondering if there is some way to do the same with vtkplotter.
thanks.

@marcomusy
Copy link
Owner

HI @hmralavi , check out a couple of example here:
https://github.com/marcomusy/vtkplotter/blob/master/examples/other/qt_window.py
https://github.com/marcomusy/vtkplotter/blob/master/examples/other/qt_window_split.py
cheers

@hmralavi
Copy link
Author

hmralavi commented Aug 9, 2019

Thanks @marcomusy they were helpful.
I also ran into a bug with both examples. when I hit the "S" key to capture screenshot, the resulting screenshot is a black image.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants