Modal QDialog in Qt5 & MacOS: not that modal!
-
Hello,
I went from Qt 4.7.4 to Qt5.1.0. I made several adjustments, and could finally compile. There is however a strange thing happening with modal QDialogs, and only on MacOS (Windows and Linux work fine):
It seems as the modal dialog is not completely modal: one can select edit boxes, and even close the parent dialog by clicking its close button in the upper left corner. The consequence of this are regular crashes.
On top of that, customization flags don't seem to work anymore, e.g:
Qt::Tool|Qt::CustomizeWindowHint|Qt::WindowTitleHint will still offer functional maximize and close buttons in the dialog bar.Is it possible that this is a Qt5 bug, or am I doing something wrong?
-
Hi,
It might well be a bug, you could check on the mailing list (you'll find more developers/maintainers there, this forum is more user oriented) and Qt's "bugreports":https://bugreports.qt-project.org/issues/ system.
If you don't find anything, you can submit a bug report with a minimal compilable example that shows the behavior
-
Thanks for your reply.
Actually I noticed that this happens only if I have the Qt::Tool flag set for the dialog. Removing that flag resolves the problem. -
You should check anyway, that sounds kind of a regression form 4 to 5
-
Yes, I posted a bug report
-
Can you post the link to the report here ? So other users can go see it if they have the same problem as you
-
Right ;)
"Here":https://bugreports.qt-project.org/browse/QTBUG-32433 it is!