qtbase/examples/widgets/draganddrop/draggableicons
Patryk Stachniak 8e3f04f54c Improve drag-and-drop visual handling in DragWidget
Modified the mousePressEvent in DragWidget to
temporarily detach the dragged QLabel from its
parent using setParent(nullptr). This ensures the
dragged widget remains visible and above other
widgets during the drag operation. Re-parenting
logic was added to restore the QLabel to its o
riginal container if the drag action is not a
MoveAction. This change addresses visual issues
where dragged items could disappear behind
overlapping widgets, enhancing user experience
and maintaining consistent behavior.

Task-number: QTBUG-123777
Pick-to: 6.6.2
Change-Id: I3edce9c96815e32eb8f00b61f7eda1709de04b4d
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
2024-12-06 00:29:01 +01:00
..
images
CMakeLists.txt CMake: Add deployment API to our examples 2024-03-22 20:23:52 +01:00
draggableicons.pro wasm: fix drag examples for webassembly 2024-01-11 00:52:01 +10:00
draggableicons.qrc
dragwidget.cpp Improve drag-and-drop visual handling in DragWidget 2024-12-06 00:29:01 +01:00
dragwidget.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
main.cpp Examples: Remove unnecessary Q_INIT_RESOURCE calls 2023-06-08 16:15:02 +00:00