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

Items under MouseArea does not catch press event if it not accepted

    XMLWordPrintable

Details

    Description

      I have an invisible Item under a MouseArea. In the MouseArea pressed event I make the Item visible and mouse.accepted=false. With Qt 5.6.2 and 5.7, the Item catches press event and accept it. But starting from Qt 5.8 the Item does not catch it. Please see attached example application.
      Steps to reproduce:

      1. Download and unpack the demo project.
      2. Run the application with Qt 5.9.x.
      3. Press on the red text.

      Actual result:
      Please see behavior on Qt 5.9.2(Qt5_9_2.avi).
      Expected result:
      Please see behavior on Qt 5.6.2(Qt5_6_2.avi).

      Attachments

        1. Qt5_9_2.avi
          390 kB
        2. Qt5_6_2.avi
          450 kB
        3. MouseEventBug.zip
          2 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            srutledg Shawn Rutledge
            yurik147 Yurii Olenych
            Votes:
            6 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes