[vtkusers] Question key conversion in QVTKRenderWindowInteractor.keyPressEvent
david.gobbi at gmail.com
Thu Jun 16 08:44:26 EDT 2016
On Thu, Jun 16, 2016 at 6:32 AM, Elvis Stansvik <
elvis.stansvik at orexplore.com> wrote:
> 2016-06-16 14:12 GMT+02:00 David Gobbi <david.gobbi at gmail.com>:
>> Hi Elvis,
>> The commit logs might hold the answers to some of your questions.
>> Here's the history line for when QVTKRenderWindowInteractor.py was
>> The history continues here:
>> And finally comes to the present:
>> Also, here is some pre-history:
> Thanks for the pointers, but it seems the code was like that when the Qt 4
> variant was initially contributed by Phil Thomson:
Wrong. You might need to practice your detective skills some more :)
But even if we forget about history/origin, doesn't it seem strange to use
> str(ev.text()) in the keyPressEvent?
Yes, it seems strange, but there might be a reason. You'll have to
experiment with Qt to see what str(ev.text()) and chr(ev.key()) return
under various situations.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the vtkusers