PDA

View Full Version : How to detect a process ?



Nyphel
19th April 2007, 12:27
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 ?:)

jpn
19th April 2007, 12:35
QtSingleApplication (http://www.trolltech.com/products/qt/addon/solutions/catalog/4/Utilities/qtsingleapplication/)
http://www.qtcentre.org/forum/f-qt-programming-2/t-limiting-the-number-of-instances-of-one-application-3991.html

Nyphel
19th April 2007, 13:28
Thanks, very very interesting post :)