From a553e2f6b520525608412668a91b26ce68ca57cb Mon Sep 17 00:00:00 2001 From: Sergio Martins Date: Tue, 10 Apr 2018 18:30:15 +0100 Subject: Fix z-order when dragging a dock widget over another the drop target would create a floating group window, which would have higher z-order since it just had show() called on it. raise the window we're dragging when the target is mutated into group window. Bug can be seen on the .gif attached to QTBUG-67611. Change-Id: I5dad058468e24327b14d1e7f76c3ad0287d26ee8 Reviewed-by: Olivier Goffart (Woboq GmbH) --- src/widgets/widgets/qmainwindowlayout.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/widgets/widgets/qmainwindowlayout.cpp b/src/widgets/widgets/qmainwindowlayout.cpp index 9cf2e7de1f..2e773a5790 100644 --- a/src/widgets/widgets/qmainwindowlayout.cpp +++ b/src/widgets/widgets/qmainwindowlayout.cpp @@ -2559,6 +2559,7 @@ void QMainWindowLayout::hover(QLayoutItem *widgetItem, const QPoint &mousePos) dropTo->show(); dropTo->d_func()->plug(QRect()); w = floatingTabs; + widget->raise(); // raise, as our newly created drop target is now on top } Q_ASSERT(qobject_cast(w)); auto group = static_cast(w); -- cgit v1.2.3