how to make a mainwindow as a MDI parent in qt

1.7k views Asked by At

how to make a mainwindow as a MDI parent in Qt creator

1

There are 1 answers

0
serge_gubenko On

Consider using QMdiArea widget as a central widget of your parent window. Smth like this:

QMainWindow *mainWindow = new QMainWindow;
mainWindow->setCentralWidget(mdiArea);

better example is here: MDI Example

hope this helps, regards