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

[REG 6.2.4->6.2.5 / 6.3.0->6.3.1] Mouse Click propagates through when clicking disabled MenuItem

    XMLWordPrintable

Details

    Description

      When enabled property of MenuItem is set to false and this MenuItem is clicked, the click propagates through. Please find reproducer attached. Last known good versions are Qt 6.2.4 and 6.3.0.

      Steps to reproduce:
      1) Build the example attached with an affected version.
      2) With mouse, left click the window to open the menu
      3) With mouse, left click the grayed out 'Active' Menu Item.

      This causes the TapHandler to trigger again and it reopens the menu. "On tapped:" Is printed again in the application output.

      Reproducible with Windows, Linux and macOS. Issue did not reproduce with touch screen. This is a regression between Qt 6.3.0 and 6.3.1 (and between 6.2.4 and 6.2.5 in Qt 6.2 branch).

      As a workaround, setting a Rectangle covered by MouseArea can be used as a background property of Menu in order to catch propagated events. This should not be needed however.

      Attachments

        Issue Links

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

          Activity

            People

              vhilshei Volker Hilsheimer
              foxxx Tuukka Kettunen
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes