Skip to content

It's can't reopen after quit application on macOS #198

@L-Super

Description

@L-Super

Env:

  • Qt 6.7.2
  • CMake 3.30
  • MacBook Pro M3(macOS 14.6.1)

When I first initialized the project, compiled and ran it, the program started up normally. However, when I tried to start it again, the program would not start, and there was no output in the console. After replacing it with QApplication, the program ran normally.

After I cleared the cache, the program was also difficult to run. After restarting my computer, the program was able to run normally once.

I'm not sure if it's related to this issue #136

My code:

int main(int argc, char* argv[])
{
    SingleApplication a(argc, argv);
    a.setApplicationName("FlowD");
   
    // ...init...

    MainWindow w;
    w.show();

    QObject::connect(&a, &SingleApplication::instanceStarted, &w, &MainWindow::show);

    return QApplication::exec();
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions