What you describe should be possible with a classic QMainWindow/QMDIArea setup. You would then decorate the QMDISubWindows using the classes QToolBar, QStatusBarand QMenuBar. These classes aren't limited to be used with the QMainWindow.
EDIT:
I just realized you can add a QMainWindow to a QMainWindow.
Try the following:
#include <QtGui>
{
w->menuBar()->addMenu("&File");
QMdiArea* a = new QMdiArea;
w->setCentralWidget(a);
w
->statusBar
()->showMessage
(QString("Level %1").
arg(i
));
w
->addToolBar
("")->addAction
(new QAction("A", w
));
if(i)
a->addSubWindow(newWindow(--i));
return w;
}
int main(int argc, char* argv[])
{
newWindow()->show();
return app.exec();
}
#include <QtGui>
QMainWindow* newWindow(int i=2)
{
QMainWindow* w=new QMainWindow(0,0);
w->menuBar()->addMenu("&File");
QMdiArea* a = new QMdiArea;
w->setCentralWidget(a);
w->statusBar()->showMessage(QString("Level %1").arg(i));
w->addToolBar("")->addAction(new QAction("A", w));
if(i)
a->addSubWindow(newWindow(--i));
return w;
}
int main(int argc, char* argv[])
{
QApplication app(argc, argv);
newWindow()->show();
return app.exec();
}
To copy to clipboard, switch view to plain text mode
mainwindow..png
Bookmarks