QDialog and switching applications
Hello,
I have the following Dialog:
Code:
QWinWidget mainWnd(mainHwnd_);
mainWnd.setWindowFlags(Qt::Window);
MyDialogDialog dlg(&mainWnd); //QDialog derived class
dlg.exec();
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?
Re: QDialog and switching applications
Re: QDialog and switching applications
A widget delivered by Trolltech for (at least) the commercial version of Qt. It integrates Qt with Win32 API applications.
Re: QDialog and switching applications