Hi,
I used "class ViewerWidget : public QWidget, public
osgViewer::CompositeViewer" to integrate osg with qt.
Then I used osg's event handle to handle some mouse push or release event
,it works fine.
But there are some other QWidgets may pass event to my 3D ViewerWidget .
For example ,I drag some symbols from one qt dialog to my 3D ViewerWidget
,which should activate the 3D ViewerWidget's drop event.
Since I do not find osg has the drop event,so I define and realize one as
follow in ViewerWidget .h
virtual void dropEvent( QDropEvent* event )
{
printf("drop");
}
It is not functional.
The I try other QtEvents like mousePushEvent or mouseMoveEvent,none
works.It seems the osg or osgEarth's event handle may block the original QT
events.
Need help!
Thx!
Thank you!
Cheers,
Lv
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=53033#53033
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org