How to catch event when program is in background?



  • How can we catch event when program run in background?

    THanks,


  • Moderators

    This depends heavily on the IPC mechanisms used by the two applications and what you mean by "event".



  • Which events on which OS do you want to catch? From other programs or X events that are received from the X server or something else?
    maybe enough reimplement next functions:

    @bool QCoreApplication::winEventFilter ( MSG * msg, long * result ) [virtual]
    bool QApplication::x11EventFilter ( XEvent * event ) [virtual]
    bool QApplication::symbianEventFilter ( const QSymbianEvent * event ) [virtual]
    bool QApplication::macEventFilter ( EventHandlerCallRef caller, EventRef event ) [virtual]@


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.