Check the System Tray Icon Example. It catches close event and hides the window instead of closing it:
Qt Code:
{ if (trayIcon->isVisible()) { ... hide(); event->ignore(); } }To copy to clipboard, switch view to plain text mode
Check the System Tray Icon Example. It catches close event and hides the window instead of closing it:
Qt Code:
{ if (trayIcon->isVisible()) { ... hide(); event->ignore(); } }To copy to clipboard, switch view to plain text mode
J-P Nurmi
Bookmarks