diff options
| author | MohammadHossein Qanbari <mohammad.qanbari@qt.io> | 2024-11-06 18:06:45 +0100 |
|---|---|---|
| committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2024-11-07 22:18:03 +0000 |
| commit | 1041ae39a6465a53b173515ab3b0f1fffda29dc3 (patch) | |
| tree | 5facea5b91fe50b84c5594f72c1961548fb611b9 | |
| parent | afd10684d05931cd1f42ff70dca8ee21db45e58d (diff) | |
Spreadsheets Example: Fix hang on dragging header through selected cells
The bug occurred when dragging a column over a selected column cells.
The DropArea in TableView attempted to process inconsistent drag data
for all the selected cells (up to 1000), causing the application to
hang.
Fix: Enable DropArea only for dragging TableView cells; disable for
other cases.
Fixes: QTBUG-130928
Change-Id: I162a57638d89b97f3f1ef553850e3be3be389f1d
Reviewed-by: Santhosh Kumar <santhosh.kumar.selvaraj@qt.io>
(cherry picked from commit 1e02f013a59432ec5bbf2d8bd64fbff83905364f)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
| -rw-r--r-- | examples/quickcontrols/spreadsheets/Spreadsheets/Main.qml | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/quickcontrols/spreadsheets/Spreadsheets/Main.qml b/examples/quickcontrols/spreadsheets/Spreadsheets/Main.qml index d90a3d245f..e9400b1161 100644 --- a/examples/quickcontrols/spreadsheets/Spreadsheets/Main.qml +++ b/examples/quickcontrols/spreadsheets/Spreadsheets/Main.qml @@ -348,6 +348,7 @@ ApplicationWindow { anchors.fill: parent Drag.active: dragArea.drag.active + enabled: dragArea.drag.active function startDragging() { |
