[osg-users] osgQt mouse position from QEvent is always zero
Sebastian Schmidt
herrdersuppen at gmail.com
Tue May 22 07:23:29 PDT 2018
I'm trying to get current mouse position when mouseMoveEvent() gets called after moving the mouse over a QWidget.
QMouseEvent->pos() or QMouseEvent->globalPos() is always zero.
The same goes for catching the event in a custom eventFilter.
I'm using osgQt from version 3.4.1.
I would rather use the relative QWidget mouse position than 2d coordinates from osg::GUIEventAdapter.
------------------------
OSG Version: 3.4.1
OS: OpenSuse Leap 42.1
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=73711#73711
More information about the osg-users
mailing list