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

Long-press (but not right-click) leads to doubled-up context menus in QWebEngineView

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.8.3
    • WebEngine
    • None
    • Windows 10 22H2, Microsoft Surface Pro 2
    • Windows

    Description

      Steps to reproduce

      1. Build and run the WebEngine Widgets Simple Browser Example on a device with a touchscreen
      2. Long-press on some text to bring up the simplified context menu
      3. Tap on the "..." menu item to bring up the full context menu
      4. Dismiss the context menus, then right click the same text to bring up the context menu

       

      Outcomes

      (Step #2) We get a funny-looking context menu:

       

      (Step #3) We get two copies of the context menu: One at the location of the long-press, and one at the top-left corner of the QWebEngineView

      (Step #4) We don't see the funny context menu from Step #2. We only get a single copy of the same context menu as Step #3

       

      Notes

      • Does not reproduce on the WebEngine Quick Nano Browser Example – both right-click and long-press generates the same context menu
      • Does not reproduce on Linux (either Boot to Qt + eglfs or Ubuntu 22.04 + xcb-XWayland): Long-pressing leads to the expected context menu is seen without duplication

      Attachments

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

        Activity

          People

            qt_webengine_team Qt WebEngine Team
            skoh-qt Sze Howe Koh
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes