[vtkusers] VTKRenderWindowInteractor inside of a QVTKWidget
Adam Stylinski
stylinae at mail.uc.edu
Mon Nov 28 09:44:40 EST 2011
On Mon, Nov 28, 2011 at 9:28 AM, Adam Stylinski <stylinae at mail.uc.edu>wrote:
> Hello,
>
> I'm using the QT bindings for VTK and am trying to write a callback for
> click events. The interaction with the RenderWindow seems to operate
> properly when moving the camera around, however when I use the
> GetMousePosition() function in my callback, it always reports the mouse
> position as (0,0). I'm having it draw spheres at the location in the
> callback, and it seems to draw it in the bottom leftmost corner of the
> widget each time, confirming this problem. Is there some sort of focus
> issue going on? How do I fix this?
>
Oh I should probably also note that I'm using a pointpicker for the events.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20111128/6d5f8edb/attachment.htm>
More information about the vtkusers
mailing list