Hi OpenSG folks !

I am currently working on a QT OpenSG Application inspired by the
OpenSG/Examples/QTDesignerPlugin/osgdesignerexample.

1.) I am trying to capture keyboard events in the OpenSG context widget, 
but no success. I tried to implement the function 
OSGDesignerExampleForm::keyPressEvent(QKeyEvent *k), but it is never 
called.

Can somebody please tell me all the modifications that I have to do in the 
OSGDesignerExampleForm example to get it work ? This would help me to 
adapt the key events to my own applications (since it is pretty much based 
on the example ;-))

2.) Is there a way to have a timeout Callback function in the 
OSGDesignerExampleForm that is called every x milliseconds ? I got that 
working with QTimer without passing by the QT Designer, but I think this 
is not the proper way. Again, the best help would be to tell me what to 
add in the OSGDesignerExampleForm example.

3.) Is there a way to influence the mouse position in this example ? For 
example, by pressing the 'h' key, the mouse is placed at (10,10) 
coordinates (relative to the entire window, not the widget). Or, for 
example the 'l' key would simulate a left Click ... Again, the best help 
would be to tell me what to
add in the OSGDesignerExampleForm example.

I know thet Kornelia already had similar problems, but all remarks on the 
FocusPolicy and so on did not help.


Thanks a lot for your help !!

    Patrick


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to