Skip to content

QAIV: Reset double-click flag in mousePressEvent

[PATCH 1/2] QAbstractItemView: don't block dragging after double click

[PATCH 2/2] QAIV: Reset double-click flag in mousePressEvent

Amends 17c1ebf8, which introduced logic
that recognizes double clicks to avoid duplicate clicked() emits. If a
slot connected to doubleClicked opens a dialog, then the release-event
will not be seen by the item view, leaving the flag incorrectly set and
preventing the next clicked signal.

Fixes: QTBUG-97853
Pick-to: 6.2 5.15
Change-Id: Iced83e8c66a763672f522265435dc52a745227e4
Reviewed-by: default avatarQt CI Bot <>
Reviewed-by: default avatarRichard Moe Gustavsen <>
Reviewed-by: default avatarJan Arve Sæther <>
(cherry picked from commit e5ebc28764979f00f1ce3aeb8b2d44b5cadb93c5)
Edited by Andreas Sturmlechner

Merge request reports