Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. How to catch event when program is in background?
Forum Updated to NodeBB v4.3 + New Features

How to catch event when program is in background?

Scheduled Pinned Locked Moved Mobile and Embedded
3 Posts 3 Posters 2.6k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    cheng
    wrote on 25 Aug 2010, 17:49 last edited by
    #1

    How can we catch event when program run in background?

    THanks,

    1 Reply Last reply
    0
    • T Offline
      T Offline
      tobias.hunger
      wrote on 25 Aug 2010, 20:37 last edited by
      #2

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

      1 Reply Last reply
      0
      • A Offline
        A Offline
        alexander
        wrote on 17 Sept 2010, 09:51 last edited by
        #3

        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]@

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved