How can I put my QGridLayout in a window that inherits from QMdiSubWindow ? Attempting a simple setLayout() produces a Vorning, saying that the window already has its layout.
UPD: By trial and error, I came up with creating a QFrame instance and putting it with the setWidget() method as an internal window widget, and already clinging to this frame is a layout. Is this the right approach?