qt6-bb10/examples/widgets
Patryk Stachniak 271c8b3c99 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.3 6.6.2
Change-Id: I3edce9c96815e32eb8f00b61f7eda1709de04b4d
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
(cherry picked from commit 8e3f04f54c421b2884b5c80bafc5d0df2212ffc1)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
2024-12-05 23:29:12 +00:00
..
animation Add copyright and licensing to build system files missing it 2024-05-21 17:23:21 +02:00
desktop systray example: if there is no system tray, allow waiting for one 2024-06-05 01:40:21 +00:00
dialogs CMake: Add deployment API to our examples 2024-03-22 20:23:52 +01:00
doc Doc: Move Easing Curve example into Graphics category 2024-11-12 23:07:13 +00:00
draganddrop Improve drag-and-drop visual handling in DragWidget 2024-12-05 23:29:12 +00:00
gallery Widget gallery example: set color scheme before constructing UI 2024-06-11 19:35:30 +00:00
gestures CMake: Add deployment API to our examples 2024-03-22 20:23:52 +01:00
graphicsview Docs: Update the screenshots for the Qt Widgets examples 2024-10-15 07:29:48 +00:00
itemviews Removal of generic stylesheet rule for dropdown 2024-12-02 16:44:07 +00:00
layouts CMake: Add deployment API to our examples 2024-03-22 20:23:52 +01:00
mainwindows CMake: Add deployment API to our examples 2024-03-22 20:23:52 +01:00
painting CMake: Add deployment API to our examples 2024-03-22 20:23:52 +01:00
qnx/foreignwindows Doc: Fix license of foreignwindows example 2023-06-30 18:46:54 +02:00
rhi CMake: Add deployment API to our examples 2024-03-22 20:23:52 +01:00
richtext CMake: Add deployment API to our examples 2024-03-22 20:23:52 +01:00
tools Show Custom Completer example as part of UI Components category 2024-10-31 15:36:20 +00:00
touch CMake: Add deployment API to our examples 2024-03-22 20:23:52 +01:00
tutorials CMake: Add deployment API to our examples 2024-03-22 20:23:52 +01:00
widgets Add copyright and licensing to build system files missing it 2024-05-21 17:23:21 +02:00
CMakeLists.txt Correct license for examples files 2024-03-07 11:06:43 +01:00
widgets.pro Add QRhiWidget 2023-08-14 17:05:36 +02:00