main.cpp 210 B

1234567891011
  1. #include <singleapplication.h>
  2. int main(int argc, char* argv[])
  3. {
  4. // Allow secondary instances
  5. SingleApplication app(argc, argv);
  6. qWarning() << "Started a new instance";
  7. return app.exec();
  8. }