0

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

Liz
  • 8,780
  • 2
  • 36
  • 40

1 Answers1

1

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

serge_gubenko
  • 20,186
  • 2
  • 61
  • 64