X to close dialog disabled with Qt 5
-
I just noticed that the X in the upper right hand corner to close a window is disabled in many of my dialogs. I can enable it by setWindowFlags(Qt::Window). This is also true for getFontDialog, where it's not so easy to fix. On the other hand, getColorDialog is ok. Based on the Qt versions I have installed, this change happened after 4.8.4; I see it in 5.0.2 and 5.1.0rc2. I'm running Windows 7, 64-bit with various combinations of 32/64-bit Qt, MinGW and VC++ 2010/2012. What's the expected behavior if WindowFlags are not explicitly set?