A possible solution to Body dock problems

27 views
Skip to first unread message

Edward K. Ream

unread,
Jun 15, 2019, 9:36:31 AM6/15/19
to leo-editor
#1206 suggests that dragging any dock onto the Body dock should always split the Body dock, rather than tabbing the Body dock.

This can probably be done by creating drag-and-drop handlers for QDockWidgets which will then call QMainWindow.splitDockWidget.  I'll attempt this later today.

Edward

Edward K. Ream

unread,
Jun 15, 2019, 3:34:06 PM6/15/19
to leo-editor
On Saturday, June 15, 2019 at 8:36:31 AM UTC-5, Edward K. Ream wrote:
#1206 suggests that dragging any dock onto the Body dock should always split the Body dock, rather than tabbing the Body dock.

This can probably be done by creating drag-and-drop handlers for QDockWidgets which will then call QMainWindow.splitDockWidget.

Alas, this looks impossible.  According to Qt discussions, QMainWindow manages drag and drop of QDockWidgets using specialized code. So overriding dragEnterEvent and dropEvent does not work. Boo hoo.

I have closed #1206 because it looks impossible.

Edward
Reply all
Reply to author
Forward
0 new messages