Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
L-Super opened this issue Sep 18, 2024 · 0 comments
Open

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

L-Super opened this issue Sep 18, 2024 · 0 comments

Comments

@L-Super
Copy link

L-Super commented Sep 18, 2024

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();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant