I wonder how to create an application that could have only one instance of it running on the host OS at a time ... a so-called single-screen application. I wonder how to create such a single-point C ++ application in Qt?
You can use the class QtSingleApplicationfrom Qt Solutions. Please note that this is not a standard Qt class. You must download it from gitorious
QtSingleApplication
Qt Solutions
The QtSingleApplication component provides application support that can be run only once for each user.
When starting the application, create a file. When the application ends, delete the file.
, .
Qt, . WINAPI. , ( ) , , . , , . , FindWindow , . , , . ( , , FindWindow.)