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
Jump to navigation
Jump to search
AutoSpider (talk | contribs) (Convert ExpressionEngine links) |
(Fixed links) |
||
Line 1: | Line 1: | ||
[[Category:HowTo]] | [[Category:HowTo]] | ||
[[Category:snippets]] | [[Category:snippets]] | ||
Line 14: | Line 12: | ||
</code> | </code> | ||
If you have installed a system tray icon with [http://doc.qt. | If you have installed a system tray icon with [http://doc.qt.io/qt-5/qsystemtrayicon.html QSystemTrayIcon] you can add a menu entry and connect the [http://doc.qt.io/qt-5/qaction.html QAction's] triggered() signal with the respecitve slots. |
Revision as of 14:09, 24 March 2016
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
raise();
// maybe additionally to activate the window:
activateWindow();
If you have installed a system tray icon with QSystemTrayIcon you can add a menu entry and connect the QAction's triggered() signal with the respecitve slots.