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?
Qt 6.11 is out! See what's new in the release blog

How to catch event when program is in background?

Scheduled Pinned Locked Moved Mobile and Embedded
3 Posts 3 Posters 2.8k 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 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 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 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