How to create a single-user Qt application on Windows?

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?

+3
source share
3 answers

You can use the class QtSingleApplicationfrom Qt Solutions. Please note that this is not a standard Qt class. You must download it from gitorious

The QtSingleApplication component provides application support that can be run only once for each user.

+3
source

When starting the application, create a file. When the application ends, delete the file.

, .

+2

Qt, . WINAPI. , ( ) , , . , , . , FindWindow , . , , . ( , , FindWindow.)

0

All Articles