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

File menu / QMenuBar not working with touch screens

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P1: Critical
    • None
    • 6.4.2, 6.9
    • None
    • Ubuntu 24.04, Wayland
      Laptop touch screen & desktop with touch screen.
    • Linux/Wayland

    Description

      Touch input isn't working with QMenuBar in a created app or Qt Creator.

      I am new to Qt, but I am running into a bug and have been looking for a solution for the past week with no success. I am using Ubuntu 24.04 with Wayland and have a touch screen. I need to interact with the menu bar or file menu at the top left of an app. When I touch "File" in my app or Qt Creator, the menu opens, but when I let go of the touchscreen, it immediately closes so I can't select anything in the file menu.

      I have found that if I run the app or Qt Creator with sudo, the menu opens and stays open correctly, but I can't find what the differences are between running the app with and with out sudo.

      The attached video shows me running the app and opening the File menu by touching it, but it immediately closing when the touch is released. I did try dragging my finger down on the menu, but it doesn't select anything in the menu when I try that. At 0:15, I run my app with sudo to show that it is working as expected.

      At 0:30, I show the same issue with Qt Creator 13.0.0. At 0:55, I am using a mouse to navigate the menus.

      I have tried reinstalling Ubuntu, Qt Creator, Qt, 3 different touch screens and 3 different computers with the same result.

      If I run the app on Windows 10, the file menu works fine with the touch screen, but I need to use Ubuntu and I can't continue to use sudo to run the app.

       

      Thank you

      Attachments

        1. Qt Touch Input on Menu Bar.mp4
          10.07 MB
        2. output-touch-weston.txt
          3 kB
        3. output-touch.txt
          7 kB
        4. output-mouse.txt
          6 kB
        5. normal-output.txt
          32 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            liaqi Liang Qi
            adamqt adam reed
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes