Hello,
I have the following Dialog:
QWinWidget mainWnd(mainHwnd_);
mainWnd.setWindowFlags(Qt::Window);
MyDialogDialog dlg(&mainWnd); //QDialog derived class
dlg.exec();
QWinWidget mainWnd(mainHwnd_);
mainWnd.setWindowFlags(Qt::Window);
MyDialogDialog dlg(&mainWnd); //QDialog derived class
dlg.exec();
To copy to clipboard, switch view to plain text mode
The following strange things occur:
- When pressing ALT-TAB in Windows XP, my Application icon is gone. The MyDialog icon is shown instead.
- When switching to another application and switching back, by using the taskbar will show my main window, not the modal dialog. Users think the dialog is gone and cannot use the app anymore.
- If I want to make my application usable again, I have to activate it via ALT-TAB again. Then the dialog is on top.
This is what I want:
Modal dialog, always on top, whenever the application is activated and no icon changes in my ALT-TAB window.
How can I do that?
Bookmarks