Restore Mac Application Window after Cmd-H

From Qt Wiki
Revision as of 11:24, 24 February 2015 by Maintenance script (talk | contribs)

Jump to: navigation, search


How to restore an OS X application window after hiding with Cmd-H

If you have hidden an OS X Application with Cmd-H (aka Apple-H = ⌘-H) the hidden window cannot be shown again by calling slot show(). In this case you must call

<br />raise();<br />// maybe additionally to activate the window:<br />activateWindow();<br />

If you have installed a system tray icon with "QSystemTrayIcon&quot;:http://doc.qt.nokia.com/stable/qsystemtrayicon.html you can add a menu entry and connect the "QAction's&quot;:http://doc.qt.nokia.com/stable/qaction.html triggered() signal with the respecitve slots.