Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-77251

Regression(5.12): MouseButtonRelease not sent to QStyledItemDelegate

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • P1: Critical
    • None
    • 5.12
    • Widgets: Itemviews
    • 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

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            andysh Andy Shaw
            crytek_luis Luis Lairet
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes