[osg-users] osgviewerQT + StatsHandler

Mario Valle mvalle at cscs.ch
Wed Oct 17 18:40:14 PDT 2007


Poirier, Guillaume wrote:
>
> Hello !
>
> Sorry if this was already discussed... I checked on the gmane archive 
> and could
> not find anything on the topic :(
>
> Is the osgviewerQT supposed to work with the StatsHandler ? Most 
> viewer examples
> use it except osgviewerQT.cpp. When I do
>
> ViewerQT* viewerWindow = new ViewerQT;
> viewerWindow->addEventHandler(new osgViewer::StatsHandler);
>
> and press 's' I get a "Stats report:" printout but see nothing in the 
> window.
>
The same was happening to osgviewerWX. It happens because WX passes 'S' 
instead of 's' to osg in OnKeyUp and OnKeyDown, ie. the uppercase 
lettere is always passed. I think the same is happening in Qt.
Hope it helps
                               mario

> Cheers !
>
>
> bill
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>   


-- 
Ing. Mario Valle
Visualization Group                              | http://www.cscs.ch/~mvalle
Swiss National Supercomputing Centre (CSCS)      | Tel:  +41 (91) 610.82.60
v. Cantonale Galleria 2, 6928 Manno, Switzerland | Fax:  +41 (91) 610.82.82




More information about the osg-users mailing list