I understand QDockWidget . Faced with an incomprehensible thing for me - under MS Windows the title of the window in the dock is always the same, regardless of which theme is installed in MS Windows. The screenshot below:

enter image description here

Two questions:

  • Is this element a Windows control, or does Qt draw it on its own?
  • As you can see in the screenshot, and this is from standard Qt examples, the placement of the title, as well as the parked window itself, is terrible ! A whole set of different indents. Especially noticeable on the left. I looked at the code, no styles were used. How to put parked windows nicely / correctly? Considering the build for both X11 and OSX.
  • Qt рисует его самостоятельно - yes. You can make sure with the help of WinSpy , which can not select any Qt-th control, because it is not a Windows-window. - ߊߚߤߘ
  • @Arhad, does MS Windows have a similar control, in the sense of "native"? - Majestio
  • There is no such thing in Common Controls . We'll have to re- WM_MOUSEMOVE window styles when docking and WM_MOUSEMOVE , plus processing WM_MOUSEMOVE from DockWidget to track the need for undocking and docking. Regarding styles: WS_DLGFRAME | WS_BORDER | WS_VISIBLE | WS_CLIPCHILDREN | WS_CLIPSIBLINGS WS_DLGFRAME | WS_BORDER | WS_VISIBLE | WS_CLIPCHILDREN | WS_CLIPSIBLINGS WS_DLGFRAME | WS_BORDER | WS_VISIBLE | WS_CLIPCHILDREN | WS_CLIPSIBLINGS , when docking add WS_DLGFRAME | WS_BORDER | WS_CHILD | WS_TABSTOP WS_DLGFRAME | WS_BORDER | WS_CHILD | WS_TABSTOP WS_DLGFRAME | WS_BORDER | WS_CHILD | WS_TABSTOP . - ߊߚߤߘ
  • When undocking - the topic window picks up. Apparently already processed by the OS. But when it is in the dock .... ¯ \ _ (ツ) _ / ¯ - Majestio

0