I have a QDialog and a QSystemTrayIcon. When the user clicks close or minimize buttons the dialog hides to the system tray icon. If then the user activates the icon the dialog is shown on the top of the desktop. It works fine. Here is the code:
Qt Code:
{ switch (reason) { mainDialog->showNormal(); mainDialog->activateWindow(); mainDialog->raise(); break; } }To copy to clipboard, switch view to plain text mode
The problem comes when the dialog is on the desktop but behind some other window. I click the tray icon, the dialog activates but still remains behind other window (now deactivated). How can I force the dialog to appear on the top? I use Ubuntu 7.10 with GNOME 2.20.1
Bookmarks