migel
20th April 2012, 16:13
Possible ?
I need to call a method before the Event Loop stops when clicked on Quit from OSX Dock.
I can't use closeEvent() because I want the app running when pressed X.
QMainWindow::macEvent(..) does not see a Dock events.
QApplication::macEventFilter(...) does not get called. Its another story, I need it also to show the mainwindow again once clicked on Dock icon when previously clicked on X to hide it.
Thoughts ?
I need to call a method before the Event Loop stops when clicked on Quit from OSX Dock.
I can't use closeEvent() because I want the app running when pressed X.
QMainWindow::macEvent(..) does not see a Dock events.
QApplication::macEventFilter(...) does not get called. Its another story, I need it also to show the mainwindow again once clicked on Dock icon when previously clicked on X to hide it.
Thoughts ?