Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Way to catch non-QApplication window events ?
Forum Updated to NodeBB v4.3 + New Features

Way to catch non-QApplication window events ?

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 2 Posters 455 Views
  • 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.
  • R Offline
    R Offline
    reonZ
    wrote on last edited by
    #1

    Is there a way to catch other application window event like when a window get activated or lose focus ?

    I want to create an app that act only if a certain application is running and currently active.

    1 Reply Last reply
    0
    • dheerendraD Offline
      dheerendraD Offline
      dheerendra
      Qt Champions 2022
      wrote on last edited by
      #2

      which platform ? what do you mean by currently active ? Do you want to check only if the another application is running ?

      Dheerendra
      @Community Service
      Certified Qt Specialist
      http://www.pthinks.com

      R 1 Reply Last reply
      0
      • dheerendraD dheerendra

        which platform ? what do you mean by currently active ? Do you want to check only if the another application is running ?

        R Offline
        R Offline
        reonZ
        wrote on last edited by reonZ
        #3

        @dheerendra

        Ultimately i would have liked it to be cross-platform, but if not possible, windows is my main target.

        Now what i want is to catch an eventual event that is triggered when a window (which is not part of the qt app) get and lose focus (activated ?, foreground ?).

        While we are at it, i want to be able to create a qt window that would appear on top of the window target, but if i do that the other window will lose focus and then trigger my event, so i need to be able to manage this "conflict".

        1 Reply Last reply
        0
        • dheerendraD Offline
          dheerendraD Offline
          dheerendra
          Qt Champions 2022
          wrote on last edited by
          #4

          No direct way to do this in Qt. You need to write this on your own.

          Dheerendra
          @Community Service
          Certified Qt Specialist
          http://www.pthinks.com

          1 Reply Last reply
          1

          • Login

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