Hello!

I'm trying to create an multiple window application and have problems with the
modal dialogs.

My basic code is the following:
Qt Code:
  1. MainWindow *mainWin = new MainWindow;
  2. mainWin->show();
To copy to clipboard, switch view to plain text mode 
In the MainWindow class I have the following function:
Qt Code:
  1. void MainWindow::newWindow()
  2. {
  3. MainWindow *mainWin = new MainWindow;
  4. mainWin->show();
  5. }
To copy to clipboard, switch view to plain text mode 
This works fine.

But, the modal dialogs executed from the MainWindow class (for adding/editing data)
block any showed windows. I expected the dialogs only to block the (base) main window
it was called from, but instead it blocked any other main windows too.

Is this so by Qt's design or is there any way to change this behavior?

Regards
Sven