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

Wrong position of dropdown menu when QWebEngineView is wrapped in QGraphicsProxyWidget

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.15, 6.2
    • WebEngine
    • None
    • Linux/X11

    Description

      When a QWebEngineView is wrapped in a QGraphicsProxyWidget, drop down menus appear at the wrong position. There are several cases:

      • Initially, the menu will appear at a positon relative to the scene instead relative to the item.
      • When I resize the item, then themenu appears at the correct position.
      • When I then move the item or the viewport of the QGraphicsView, then the menus appear at the previous position and do not follow the move.
      • When I scale the item, then the menu itself is scaled, but its position relative to the item is not scaled.

      To check this out, I created a minimal proof-of-failure at https://github.com/letsfindaway/WebWidgetDropdown. Try it out as follows:

      • When you first click on the dropdown menu, then the browser window moves to the bottom richt. Use the sctrollbars to go to the top left. Here you see the menu.
      • When you then seelct the workaround checkbox at the top, then the item is slightly resized. After that, the menu appears at the correct location.
      • When you press the Move or Zoom push buttons, then the item is moved or zoomed, and the menu appears again at the wrong location.

      For me this looks as if some position and scaling information is not completely forwarded to the piece of code which determins the position of the menu. Resizing the item seems at least to update the position information, while the scale information is still not used to compute the position.

      Attachments

        Issue Links

          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
              letsfindaway Martin Winter
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes