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

Qt 5 QWidget consumes mouseDoubleClickEvent

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Not Evaluated Not Evaluated
    • None
    • 5.0.0, 5.0.1
    • None

      During porting my app (VACALACa) to Qt 5 I've notices that QWidget in Qt 5 consumes mouseDoubleClickEvent i.e. parent widget doesn't receive it.
      For comparison contextMenuEvent works fine (same as in Qt 4.8.0).
      I've also found the change that is responsible for that and it looks like a bug.
      In attachment proposed fix.
      I'm just simple Qt user so pleas correct me if I'm wrong and this new behavior is "by design".

      Steps to reproduce:
      1) create widget with child widget inside.
      2) overwrite mouseDoubleClickEvent in parent widget
      Expected result:
      mouseDoubleClickEvent in parent widget is called after double click on child widget.
      Current result:
      mouseDoubleClickEvent in parent widget is not called.

      What is more method documentation is inconsistent with current implementation.

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

            Unassigned Unassigned
            m_siergiej Michal Jaremko
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes