[Qt-interest] Does Qt::WindowModal works on windows XP?

techsgin techsgin at gmail.com
Sat Feb 7 17:52:40 CET 2009


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

 

 

 

 

 

 

 

 

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090207/6f63098c/attachment.html 


More information about the Qt-interest-old mailing list