Steffen,

This is a highly QT related question, you should check QT documentation/forums.

Installing an event filter could be one way for receiving all QT events, 
however there might be others depending on your particular interest.


Code-Snippset:
Somewhere in Qmitk-code:

myQObjectFromWhichIWantToReceiveEvents->installEventFilter(myclass);

bool myclass::eventFilter( QObject *o, QEvent *e )
{
  if ( e->type() == QEvent::KeyPress ) 
  {
    // do something

    return TRUE; // eat event
  } 
  else 
  {
    // standard event processing
    return FALSE;
  }

}



Regards,

Matthias

Matthias Baumhauer                      Phone:  (+49) 6221/42-2328
Deutsches Krebsforschungszentrum        Fax:    (+49) 6221/42-2345
Div. Medical and Biological Informatics (E130)
Im Neuenheimer Feld 280                 email:  [EMAIL PROTECTED]
D-69120 Heidelberg, Germany             http://www.dkfz-heidelberg.de/de/mbi
  


-----Ursprüngliche Nachricht-----
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Steffen Oeltze
Gesendet: Freitag, 22. Februar 2008 17:13
An: [email protected]
Betreff: [mitk-users] keyPress event

Hi,

is there anybody out there who can give me a hint on how to integrate a 
simple keyPress-event handling in MITK? A simple example would help a lot.

Thanks,
Steffen



-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to