Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.0.0, 5.1.0
-
None
-
Mac cocoa
-
be405c86f8efac7c6bc8b749725d6d0e0499314d
Description
SetWindowFlags looks broken in Qt5, specially if it is being set on QDialog.
int main(int argc, char *argv[]) { QApplication mainApp(argc, argv); QDialog *dialog = new QDialog(); //dialog->setWindowFlags(Qt::Dialog | Qt::FramelessWindowHint); //dialog->setWindowFlags(Qt::Dialog | Qt::CustomizeWindowHint); dialog->setWindowFlags(Qt::Dialog |Qt::CustomizeWindowHint| Qt::FramelessWindowHint); dialog->show(); return mainApp.exec(); }
It can be easily seen with Qt example windowfags:
Steps:
Run the WindowFlags
choose Dialog in type section:
1: check customizeWindow Hint
Result: You still see window decoration (it should remove decoration)
You also see only maximize button (there should be no button/titlebar)