I have a QWidget expanding to fit QMainWindow. I can dock a QDockWidget, but only if it fits to the current QMainWindow size.
I'd like to be able to drop the QDockWidget even if the QMainWindow is too small, and in that case resize it to accommodate the widget.
Is it possible?
Edit from comments:
when I drag the widget onto the main window, and the window is too small for the widget to fit in, it won't dock. So, I can't use QDockWidget
signal topLevelChanged(bool)
which is emitted when a QDickWidget
is docked or undocked.
signal.