<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Tue, Aug 9, 2016 at 1:29 AM, Elvis Stansvik <span dir="ltr"><<a href="mailto:elvis.stansvik@orexplore.com" target="_blank">elvis.stansvik@orexplore.com</a>></span> wrote:<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><br></div>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.<br></div></div></div></div></blockquote><div><br></div><div>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.  </div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>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).<br></div></div></div></blockquote><div><br></div><div>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.</div><div><br></div><div> - David</div></div></div></div>