Hi,
I was required to use second QMainWindow (in the form of a regular widget) as the central widget of outer MainWindow, and the MDI area as the central widget of the second QMainWindow.

This way it would add four toolbar areas around MDI area which is my requirement....Apart from the toolbars of Outer QMainwindow.

Though the application is working fine and I have no idea what the consequences are or how dangerous is it .

IS IT REALLY OK TO HAVE QMAINWINDOW contained inside Another QMAINWINDOW ? .

Any help would be appreciated .

Thanks