Skip to content

Docks: double click a tab to float, View > Reset Layout - #299

Open
enriquevelmai wants to merge 1 commit into
nxt-dev:devfrom
enriquevelmai:feature/dock-tabs-reset-layout
Open

enriquevelmai wants to merge 1 commit into
nxt-dev:devfrom
enriquevelmai:feature/dock-tabs-reset-layout

Conversation

@enriquevelmai

Copy link
Copy Markdown

Two small layout conveniences:

  • Double click a dock tab (when docks are tabified) to float that dock. Qt creates the dock tab bars lazily, so an event filter is installed on them whenever a dock changes location / floating state.
  • View > Reset Layout restores the factory dock and toolbar layout. The default saveState() is snapshotted right after the docks are created, before any cached window state is restored.

Also drops DockWidgetBase.on_window_status_changed: it re-flagged a floated dock as a plain top level window with native decorations, which replaced the dock's own title bar and made it impossible to drag the dock back into the main window (or re-dock it by double clicking the title). With it gone floating docks behave like standard Qt floating docks.

…he default layout

Floating docks keep Qt's own dock title bar again (they were re-flagged
as top level windows, which replaced it with a native one and broke
dragging them back into the main window).
@wyoder
wyoder self-requested a review September 24, 2026 14:54
@wyoder

wyoder commented Sep 24, 2026

Copy link
Copy Markdown
Contributor

@enriquevelmai thank you for the PR. We are getting a hold of updates being requested. We have updates about to be released and will get back to your PR asap. Thanks for the patience.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants