Hi Robert
I wrote a ViewerQT class according to the osgviewerQT in examples. Then set
Central Widget of a form to this viewerQT instance.  Is it a proper way to
intergrate ogs and qt? Thanks!
legeo

2009/3/7 Robert Osfield <[email protected]>

> Hi Legeo,
>
> How are you integrating OSG and QT?
>
> Robert.
>
> On Sat, Mar 7, 2009 at 8:14 AM, legeochen <[email protected]> wrote:
> > Hi all,
> >    I'm trying to add a Modkey event handler to my application with osg
> and
> > qt4. But it seems that the getModKeyMask() fuction fails to work. Return
> > value of getModKeyMask() always is 0, even if I have a MODKEY pressed.
> And,
> > this is my code:
> >         if ( ea.getEventType() == osgGA::GUIEventAdapter::PUSH &&
> >              ea.getButtonMask() ==
> osgGA::GUIEventAdapter::LEFT_MOUSE_BUTTON
> > &&
> >              ea.getModKeyMask() == osgGA::GUIEventAdapter::MODKEY_SHIFT )
> >          {
> >             /*---------------------------------------------
> >                     do something here
> >             -------------------------------------------------*/
> >         }
> > How can I handle it? Thanks in advance!
> >
> > cheers
> > legeo
> > _______________________________________________
> > osg-users mailing list
> > [email protected]
> >
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
> >
> >
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to