react-nodegui icon indicating copy to clipboard operation
react-nodegui copied to clipboard

[question, MacOS] Is it possible to not quit app when user clicks X in the corner?

Open cvl opened this issue 5 years ago • 2 comments

I.e. instead of closing app, it should close the window (kinda default behavior of most macos apps).

cvl avatar Apr 15 '20 11:04 cvl

So far found that const qApp = QApplication.instance() qApp.setQuitOnLastWindowClosed(false)

will not quit the app, but when I click the icon, the window doesn't appear again.

cvl avatar Apr 15 '20 14:04 cvl

Yeah, I think this would need some work at the moment since Qt doesnt really natively support this.

a7ul avatar Apr 18 '20 09:04 a7ul