QDockWidget 'ready to dock' event
-
Hello!
I have a QDockWidget. It is wide and short (like a toolbar), when it's docked and I change it's layout to almost square when it begins floating. This is made by processing topLevelChanged signal.
The problem begins when I try to drag-and-drop it back to the dock area. The signal topLevelChanged is emitted when I drop the dock widget, and before that when the widget is dragged over the dock area, this area is highlighted with blue color - and this highlighted area has the height of the floating dock widget! And it is very tall, looks absolutely not good.
How can I solve this problem? Maybe there are some events signaling that the widget is ready to be docked if drop, so that I can set the layout to the horizontal at that moment.
Thank you.