How to create a singleton Qt application on windows?

c++, qt, winapi, windows

Solution

You could use the `QtSingleApplication` class from `Qt Solutions`. Notice that this is not a standard Qt class. You should download it. The `QtSingleApplication` component provides support for applications

that can be only started once per user.

Problem

I wonder how to create an application that would be capable to have only one instance of it running on a host OS at a time.. so to say a singleton app. I wonder how to create such singleton C++ app in Qt?

Original source

Related problems