Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Special Interest Groups
  3. C++ Gurus
  4. [SOLVED]Get notify when a running process(.exe) from windows is closed.
Forum Updated to NodeBB v4.3 + New Features

[SOLVED]Get notify when a running process(.exe) from windows is closed.

Scheduled Pinned Locked Moved C++ Gurus
8 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.
  • V Offline
    V Offline
    vpwal
    wrote on last edited by
    #1

    Hi.
    Is there any C++ windows API or Qt way so that i can get a signal that this process is closed/quit.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Do you mean any process ? An external process ? Process that you started ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • V Offline
        V Offline
        vpwal
        wrote on last edited by
        #3

        Hi

        An external process.

        1 Reply Last reply
        0
        • G Offline
          G Offline
          gyll
          wrote on last edited by
          #4

          probably the easiest and most portable way is to simply poll the existence of the process every NNN ms, for NNN>100ms this will cause minimal CPU load and you won't have to deal with catching OS-specific signals, or interfering with the message loop, etc

          1 Reply Last reply
          0
          • V Offline
            V Offline
            vpwal
            wrote on last edited by
            #5

            Did you mean using a timer so that it monitors all the processes?

            1 Reply Last reply
            0
            • V Offline
              V Offline
              vpwal
              wrote on last edited by
              #6

              Hi SGaist,

              Can i attach an external pid to QProcess and get signal when this attached process is closed.?

              1 Reply Last reply
              0
              • SGaistS Offline
                SGaistS Offline
                SGaist
                Lifetime Qt Champion
                wrote on last edited by
                #7

                AFAIK, no there's not.

                You might be interested by "this":http://msdn.microsoft.com/en-us/library/aa390425(VS.85).aspx

                Interested in AI ? www.idiap.ch
                Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                1 Reply Last reply
                0
                • V Offline
                  V Offline
                  vpwal
                  wrote on last edited by
                  #8

                  Thanks.
                  I am looking on it.

                  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