[Development] Resizing borders for dock widgets
Sérgio Martins
sergio.martins at kdab.com
Wed Feb 22 11:53:16 CET 2023
On 2023-02-18 13:42, Axel Spoerl via Development wrote:
> Hi David,
> The margin for recognizing a mouse resize is handled by the window
> manager, hence not controlled by Qt.
> (...)
That depends if the QDockWidget is using native decorations or not, see
[1].
When not using native decos, Qt::FramelessWindowHint is used and
resizing is done via QWidgetResizeHandler, which has 4px of margin [2],
but I think only inwards, since if the mouse is outside the window won't
receive the event. Maybe needs mouse grab.
[1] -
https://codebrowser.dev/qt5/qtbase/src/widgets/widgets/qdockwidget.cpp.html#299
[2] -
https://codebrowser.dev/qt5/qtbase/src/widgets/widgets/qwidgetresizehandler.cpp.html#_M/RANGE
Regards,
--
Sérgio Martins | sergio.martins at kdab.com | Senior Software Engineer
Klarälvdalens Datakonsult AB, a KDAB Group company
Tel: Sweden (HQ) +46-563-540090, USA +1-866-777-KDAB(5322)
KDAB - The Qt, C++ and OpenGL Experts
More information about the Development
mailing list