githubuser0xFFFF / Qt-Advanced-Docking-System

Advanced Docking System for Qt
GNU Lesser General Public License v2.1
1.8k stars 539 forks source link

Widget not getting complete focus even after tab is clicked #652

Closed manikSom closed 2 months ago

manikSom commented 2 months ago

We are developing an application with ads and found it quiet useful. And stumbled upon an Issue. I have replicated it in demo example in the video below.

I have just 2 dockable widgets. One Filesystem 0 and other is Calendar 0.

How can I make sure that the complete focus, even wrt to keyboard down arrow press event happens in the widget whose title bar has been clicked by the user (and thereby has the focus)?

(Using- Windows Qt6.5 )

https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System/assets/39118847/3fccf8f3-fc80-446b-a8c1-d16c1b4fe616

githubuser0xFFFF commented 2 months ago

This is intentionally. But there is a dock manager signal focusedDockWidgetChanged. You can connect to this signal and then set the focus explicitely in the connected slot.