Skip to content
Search

QtSingleApplication

lastmod 2014-03-28created 2014-03-281 edits

As the name suggests, the QtSingleApplication class is for preventing a program from running more than once at the same time. Preventing duplicate instances is used surprisingly often; think of programs like NateOn or MSN Messenger. With the Win32 API, a common approach is to create a global object such as a Mutex, but Qt provides this functionality as a class.

Favorite site