PDA

View Full Version : Frameless QMdiSubWindow



meadmaker
30th August 2010, 07:27
Is it possible to do frameless mdisubwindows. I do the "setWindowFlags(Qt::FramelessWindowHint)" on my dialog before i add it to the mdi area but still has the frame on it. Is there another way to make it frameless?

here is the code


navDialog *nav = new navDialog;
nav->setWindowFlags(Qt::FramelessWindowHint);
mdiArea->addSubWindow(nav,Qt::Dialog);
nav->setWindowTitle(QObject::tr("Main Menu"));
nav->show();

wysota
30th August 2010, 11:14
I don't think so. What do you need it for?

meadmaker
30th August 2010, 16:09
I wanted to be able to have a "navigation" widget that wouldn't move in the mdiarea. maybe i should rethink that.

wysota
30th August 2010, 16:12
But what sense does it make to make it a QMDISubWindow? You want to be able to tile it, cascade it and stuff like that together with other child windows? Maybe just add the widget as a child to the viewport of the MDI if you really need it inside the MDI. If not then place it over or besides the MDI area.

Haccel
14th September 2010, 12:28
Do like this


...
mdiArea->addSubWindow( nav , Qt::FramelessWindowHint );
...


It works