PDA

View Full Version : Maximizing QWidget to front of desktop



JimDaniel
10th November 2007, 04:17
I'm using a QSystemTrayIcon on minimize and then maximize when you double click the icon. This works fine, but if there are any other windows open it invariably shows up behind them. This doesn't feel right. If you maximize a window it should be front and center. Is there any way to bring the widget to the front? I can't seem to find anything in the documentation about this...thanks, Daniel

jpn
10th November 2007, 07:58
Try this magic combo:


window->showMaximized();
window->activateWindow();
window->raise();

JimDaniel
10th November 2007, 16:08
That did the trick!