Qt World Summit: Register Today!

Can't restore app from dock icon on Mac

  • On OSX Mavericks with Qt 5.2.1, I can't seem to restore my MainWindow after calling hide(). When hide() is called, the application is minimized to the dock icon. I would like to be able to show() the application when the user clicks on the icon, but the OS doesn't appear to deliver any events to my app when the icon is clicked (neither does it restore my main window). I set a breakpoint in my QApplication::event() override, but it's never called.

  • Is there no way to get events from the OSX dock icon?

  • Lifetime Qt Champion


    With 5.2 and 5.3 not, however there's a fix for that underway for the next version

Log in to reply