PDA

View Full Version : Qt Modal/Modeless possible bug in MS Windows



Daliphant
11th June 2008, 11:19
In Qt 4.4.0, Windows platform:
1. I create a modeless QDialog.
2. "show ()" it.
3. Open a Modal window (example, a "QFileDialog::getOpenFileName").
4. When it returns, the modeless windows is inaccesible (freeze).

In Linux, there is no problem.

What happens?

Thanks in advance.

Edit: QWidget tried and the same problem.

Daliphant
11th June 2008, 18:41
Solved: The QMainDialog never can be Modal. Put "setWindowModality (Qt::NonModal );" in its constructor.