[Qt-interest] Does Qt::WindowModal works on windows XP?
Acenes
acenes at gmx.net
Sun Feb 8 15:16:53 CET 2009
With this configuration:
- Window XP Home, all fixes installed
- Qt 4.4.3 commercial
- VS2005 Professional
Everything works as expected for true Qt widgets and dialogs, I can switch
to and use other independant windows in the same application while the
window modal dialog is shown.
However for native windows dialogs (file, print) the behaviour is as you
describe.
Hope this helps.
"techsgin" <techsgin at gmail.com> schrieb im Newsbeitrag
news:gmke9t$n6r$1 at eple.troll.no...
Hi All, and thanks in advance.
This is a bit urgent for us.
According to the help (Qt Assistant)
Qt::WindowModal -
The window is modal to a single window hierarchy and blocks input to its
parent window, all grandparent windows, and all siblings of its parent and
grandparent windows.
Qt::ApplicationModal -
The window is modal to the application and blocks input to all windows.
Well I have successfully used many times Qt::ApplicationModal, but never
Qt::WindowModal.
Our pseudo code goes like this.
We have two top level windows (Documents) with no parents, Lets call them
"window one" and "window two".
Window one creates a QDialog:
QDialog* createWindowModalDialog()
{
QDialog *lMyDialog = new QDialog(this);
lMyDialog->setWindowModality(Qt::WindowModal);
connect(lMyDialog, SIGNAL(finished(int)), this,
SLOT(sltChildFinished(int)));
lMyDialog->show();
return lMyDialog;
}
Now accurding to the ducomentation, I should be able to access "window two"
and continue with my work on it, but I cant!!!! hmmmm
Am I doing something wrong? Is it a bug?
*There is also a weird behavior in the taskbar when I activte "window two"
it gets the focus but it is still frozen.
Thanks
TechSgin
More information about the Qt-interest-old
mailing list