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

[touch] QPushButton or QToolButton does not receive mouse events after calling setMenu().

    XMLWordPrintable

Details

    • Linux/X11

    Description

      When a QPushButton or QToolButton is pressed, moved outside the button, and released, it receives MouseButtonRelease, Leave, and Release events. However, if a menu is set for the button using the setMenu method, clicking the button triggers the menu to appear, and if the button is pressed again, causing the menu to disappear, releasing the button outside the control or application, the button is not receiving any events.
      This problem frequently occurs on touchscreens, resulting in a poor user experience.
      The attached demo can reproduce this issue.
      The same to QTBUG-119864. But 119864 just solved the problem when using mouse.
      If we use touch instead of a mouse, the problem still exists.

      Attachments

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

        Activity

          People

            axelspoerl Axel Spoerl
            fnoily Yang Liu
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes