[vtkusers] QVTKWidget without interactor (C++) (was: About MouseEvents.py example)
david.gobbi at gmail.com
Tue Aug 9 11:36:52 EDT 2016
On Tue, Aug 9, 2016 at 1:29 AM, Elvis Stansvik <elvis.stansvik at orexplore.com
> My question now is whether you do something similar when working from C++?
> The reason I'm asking is that I'm in the process of porting an application
> under development from PyQt to Qt/C++, and I'm weighing the pros and cons
> of making use of VTK interactor/interactor styles vs making my own "tool
> system" for interaction.
Yes, I've been doing this in Qt/C++ for a while now, in fact I'm pretty
sure that what I described previously was Qt/C++, and not the older PyQt
interaction that I used a decade ago.
If you do use a similar system when working from C++, I'm wondering whether
> you make use of QVTKWidget, or if you have your own such class? Because
> looking at QVTKWidget (which I currently make use of), it seems to force a
> VTK interactor to be set on its rendering window (if one is not provided,
> it will create one).
No, I don't use QVTKWidget. Tying Qt and VTK together is tricky, and I
felt that I needed total control over the QT<->VTK connection which meant
writing my own class. I wanted something minimal so that I'd be able to
fix problems quickly.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the vtkusers