The SingleApplication constructor explicitly attaches itself to the shared memory and deletes the object QSharedMemory afterwards. This is to make sure that a 'dangling' shared memory which is not ...
According to Thiago Macieira we are using QSharedMemory for something it wasn't designed for. Basically we are using it in the same way as Qt Creator's QtSingleApplication, which he claims is wrong.