MainWindow can easily hide the title bar use :
setWindowFlags(Qt::CustomizeWindowHint);
But when doing with QMdiArea, like:
ui->mdiArea->setWindowFlags(Qt::CustomizeWindowHint);
ui->mdiArea->addSubWindow(child);
child->showMaximized();
Things could not work. I also try this:
child->setWindowFlags(Qt::CustomizeWindowHint);
and this:
setWindowFlags(Qt::WindowTitleHint);
It still showes
So How can I do?
BTW: if can't make this, can I disable the 3 buttons on the left or overload these buttons event.
This works for me:
Here is an example creating a sub window that is a QLineEdit. The sub window does not have a title bar: