KDAB / KDDockWidgets

KDAB's Dock Widget Framework for Qt
https://www.kdab.com/development-resources/qt-tools/kddockwidgets
Other
755 stars 164 forks source link

Incorrect dock dragging after switching tabs #407

Closed massp closed 11 months ago

massp commented 11 months ago

Description

Using the context menu in a tab area and then dragging another dock causes the wrong dock to move. The problems occurs when using the Flag_AlwaysShowTabs option.

Environment

Steps

  1. Launch the qtwidgets_dockwidgets example with the following options: qtwidgets_dockwidgets -z --allow-switch-tabs-via-menu
  2. Switch to tab DockWidget #3 via the context menu on the tab area
  3. Start dragging DockWidget #2 (or any other widget in a different group)

bug_1

Expected

The mouse should drag the DockWidget #2.

Actual

The mouse drags the group containing DockWidget #3 and DockWidget #5.