This is an example of a simple implementation of single application manager in C++/Qt. The code can be used to ensure that only one instance of application is currenlty running.
For more information about the code, check: http://just-code.org/sources/singleapp/
The code is lecensed under a MIT license, so you are free to use it in your projects.