Example Qt achieve single

Before using sharedmemory Qt implementation. But sometimes, after the application exits, the shared memory is not freed. Cause next time you start the application, the application can not be opened. Need to start twice to open the application.

Qt consulting staff, and they know this bug. And gave a connection https://code.qt.io/cgit/qt-solutions/qt-solutions.git/tree/qtsingleapplication

The use of this inter-process communication to achieve.

I will upload the file link address to my file in the.

Guess you like

Origin www.cnblogs.com/devil-shadow/p/12152433.html