include (singleapp/singleapp.pri)
QtSingleApplication a(argc, argv); ... return a.exec();
C++ (Qt) QtSingleApplication app (argc, argv); app.initialize (true); if (app.isRunning ()) { return 0; }
C++ (Qt)app.initialize (true);
C++ (Qt)QtSingleApplication app("myapp", argc, argv);