Hi Patrick,

Patrick Reuter wrote:
> 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.

I'm afraid I don't have an answer to any of those, as I've never used QT 
Designer (not to talk about QT4 Designer). Sorry! :(

Is there anybody else who can help?

        Dirk

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to