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

On touch screen devices, after calling setMenu(), QPushButton or QToolButton fail to receive leave events caused by finger interactions.

    XMLWordPrintable

Details

    • Linux/X11

    Description

      On any touch screen device, when a QPushButton or QToolButton is used with setMenu(), if we tap the button with a finger to open the menu, then press and hold the button (menu closes), and move the finger outside the button, the button fails to receive Leave and HoverLeave events.
      This issue is similar to QTBUG-119864, which was successfully fixed for mouse interactions. However, the same problem occurs when performing this action on a touch screen device using finger gestures.

      The steps to reproduce the issue are as follows:
      1. Run the demo, and at this point, the button color is white.
      2. Tap (press and release) the button use finger, and a menu pops up, the button color is red.
      3. Press and hold the button use finger, and the menu disappears.
      4. Keep the finger pressed, move the finger outside the application, and then release it, the button remains red.

      Attachments

        Issue Links

          For Gerrit Dashboard: QTBUG-123854
          # Subject Branch Project Status CR V

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There is 1 open Gerrit change