Results 1 to 3 of 3

Thread: How to detect a process ?

  1. #1
    Join Date
    Feb 2007
    Posts
    158
    Thanks
    25
    Qt products
    Qt4
    Platforms
    Windows

    Default How to detect a process ?

    Hello,

    I made a small application, but I must be sure that the user won't launch it 2 time at once.
    So, I would like to detect if a process called "toto.exe" is running, but I didn't find how to do that.

    I had a look to QProcess, but it seems that we can only find parent or child process with this class.

    Have you got an idea ?

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

  3. The following user says thank you to jpn for this useful post:

    Nyphel (19th April 2007)

  4. #3
    Join Date
    Feb 2007
    Posts
    158
    Thanks
    25
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: How to detect a process ?

    Thanks, very very interesting post

Similar Threads

  1. Replies: 1
    Last Post: 9th March 2007, 21:07
  2. Replies: 3
    Last Post: 16th November 2006, 12:24
  3. Check wheter a process is running
    By Lele in forum Qt Programming
    Replies: 1
    Last Post: 15th June 2006, 12:35
  4. Replies: 2
    Last Post: 26th April 2006, 10:43
  5. How to activate another process?
    By gtthang in forum Qt Programming
    Replies: 6
    Last Post: 3rd February 2006, 07:53

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.