https://bugs.kde.org/show_bug.cgi?id=478155

--- Comment #8 from Noah Davis <noaha...@gmail.com> ---
I get the bug with QFontDialog under the following conditions:

```
// Calling QDialog::open().
// This sets the modality to Qt::WindowModal via QWidget::setWindowModality()
and then calls QWidget::show().
// QWidget::setWindowModality() sets the specific type of modality and also
sets the Qt::WA_ShowModal attribute.
// When Qt::WA_ShowModal is set, the modality is set to Qt::ApplicationModal if
it is currently set to Qt::NonModal
// and otherwise keeps the current modality.
// If the widget has the attribute Qt::WA_WState_Created, the current modality
is applied to the widget's windowHandle.
dialog->open();

// Setting Qt::ApplicationModal and calling QWidget::show().
dialog->setWindowModality(Qt::ApplicationModal);
dialog->show();

// Setting the dialog as modal via QDialog::setModal() and calling
QWidget::show().
// This has the same behavior as setting the modality to Qt::ApplicationModal.
dialog->setModal(true);
dialog->show();
```

If I only call QWidget::show(), the QFontDialog can be used, but the dialog is
non-modal.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to