Skip to content

Focus loss when closing other dock widgets #711

@TTMarkusS

Description

@TTMarkusS

In my application I often get into a scenario, we can simply reproduce with your demo application.
We start here and only look at those few dock windows:

Image

First, we want to have "Image Viewer 0" in focus. So we click on its tab.

Using the "View" menu we now close "Label 0".

"Image Viewer 0" lost its focus. "Label 6" has the focus now. --> This is a big problem for me. In my application an action from "Image Viewer 0" will automatically open and close another dock widget (like "Label 0", also not focusable). Loosing the focus when closing another dock makes things difficult. I would like to have "Image Viewer 0" keeping the focus. In my Application "Label 6" must be focusable, but it should not randomly get the focus by closing other tabs.

The other way (I we manually give focus to "Image Viewer 0" again by clicking) and now activate "Label 0" from "View" menu, "Image Viewer 0" will keep the focus --> perfect.

Is there a way, a focussed dock widget can keep its focus, when somewhere else in the dock widget any dock window closes? That would be great.

Metadata

Metadata

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions