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:
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. - ߊߚߤߘWM_MOUSEMOVEwindow styles when docking andWM_MOUSEMOVE, plus processingWM_MOUSEMOVEfrom DockWidget to track the need for undocking and docking. Regarding styles:WS_DLGFRAME | WS_BORDER | WS_VISIBLE | WS_CLIPCHILDREN | WS_CLIPSIBLINGSWS_DLGFRAME | WS_BORDER | WS_VISIBLE | WS_CLIPCHILDREN | WS_CLIPSIBLINGSWS_DLGFRAME | WS_BORDER | WS_VISIBLE | WS_CLIPCHILDREN | WS_CLIPSIBLINGS, when docking addWS_DLGFRAME | WS_BORDER | WS_CHILD | WS_TABSTOPWS_DLGFRAME | WS_BORDER | WS_CHILD | WS_TABSTOPWS_DLGFRAME | WS_BORDER | WS_CHILD | WS_TABSTOP. - ߊߚߤߘ