On Saturday, June 15, 2019 at 8:36:31 AM UTC-5, Edward K. Ream wrote:
>
> #1206 <https://github.com/leo-editor/leo-editor/issues/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 
> <https://doc.qt.io/qt-5/qmainwindow.html#splitDockWidget>.
>

Alas, this looks impossible.  According to Qt discussions 
<https://forum.qt.io/topic/51606>, 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

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/leo-editor.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/9b808dde-0c95-4baf-b81f-4ebf484dc33c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to