<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Thu, Jun 16, 2016 at 11:08 AM, Elvis Stansvik <span dir="ltr"><<a href="mailto:elvis.stansvik@orexplore.com" target="_blank">elvis.stansvik@orexplore.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div><div><br></div></div><div>Thanks for the pointer, that's good. Though I see now that the only supported types are strings, floats, ints and vtk.vtkObject. In my case I would have been interested in QMouseEvent, since I read that QVTKWidget will use that as callData on the C++ side and was hoping the could have been true in Python (but perhaps it wouldn't have been due to other reasons..?).</div></div></div></div></blockquote><div><br></div><div>You're the first person who has asked, but yes, it would be possible to modify the Python wrappers to pass a Qt object as the callData.   If you're willing to try, or if you know someone who'd be willing, I'd be glad to provide assistance.  The modifications would have to be done in vtkWrapPythonMethodDef.c.  The wrapper API provides a method called SIPGetPointerFromObject() in vtkPythonUtil.h that is specifically made for getting a "void *" for a Qt object.</div><div><br></div><div> - David</div><div> </div></div></div></div>