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.mart...@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
--
Development mailing list
Development@qt-project.org
https://lists.qt-project.org/listinfo/development

Reply via email to