Qt wiki will be updated on October 12th 2023 starting at 11:30 AM (EEST) and the maintenance will last around 2-3 hours. During the maintenance the site will be unavailable.

Restore Mac Application Window after Cmd-H: Difference between revisions

From Qt Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 7: Line 7:
<code><br />raise();<br />// maybe additionally to activate the window:<br />activateWindow();<br /></code>
<code><br />raise();<br />// maybe additionally to activate the window:<br />activateWindow();<br /></code>


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

Revision as of 14:38, 24 February 2015


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":http://doc.qt.nokia.com/stable/qsystemtrayicon.html you can add a menu entry and connect the "QAction's":http://doc.qt.nokia.com/stable/qaction.html triggered() signal with the respecitve slots.