Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
how does Qt determine a dockwidget is ready to dock
ravas last edited by
I'm wondering how the algorithm for docking works.
Is it based on cursor position or an edge of the dockwidget?
Joel Bodenmann last edited by Joel Bodenmann
@ravas As the "docking animation" only shows up as soon as the mouse cursor (that currently drags a dockable widget) is inside the dockable area I assume that it is based on the cursor position and not the edge of the dockable widget.
Edit: Just figured that I might have given some wrong information. It looks like it just goes for the nearest dockable area when the dockable widget that is currently being dragged around is within a certain distance.