Details
-
Bug
-
Resolution: Incomplete
-
P1: Critical
-
None
-
5.12
-
None
Description
As of 5.12 not all MouseRelease events are forwarded to QStyledItemDelegate. It used to be the case that QStyledItemDelegate always had a chance of handling the event, even the documentation reads: "Mouse events are sent to editorEvent() even if they don't start editing of the item. This can, for instance, be useful if you wish to open a context menu when the right mouse button is pressed on an item."
The code causing the issue can be found in qabstractitemview.cpp under ::mouseReleaseEvent.
const bool edited = click ? edit(index, trigger, event) : false; // this code didn't use to check for click in 5.11 and all the way back to 5.3