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

Popup Menu opens at the wrong position in QQuickView embedded in QWidget

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P3: Somewhat important
    • Resolution: Unresolved
    • Affects Version/s: 5.12.3
    • Fix Version/s: None
    • Component/s: Quick: Controls 2
    • Labels:
      None
    • Environment:
      Windows 10
    • Platform/s:
      Windows

      Description

      I have created two QWidget elements from two QQuickView elements using QWidget::createWindowContainer(). My widgets are inside my main window and do not fill the entire window. Each QQuickView element contains a Menu element that I open on mouse click using Menu.popup(). For the second of my QQuickView elements, the menu opens on the wrong place. Actually, it opens at cursorPos + My widget's position in its top-level window.

      Additionally, I see some strange effects before the menu opens for a second QQuickView element: part of the menu appear and quickly hide on the first QQuickView element.

      Note: I saw similar issues which have been marked resolved.

      I am on Windows 10 with two screens.

      Example code can be found in the attachment.

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              qt.team.quick.subscriptions Qt Quick and Widgets Team
              Reporter:
              kofev Fedor Kopylov
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:

                  Gerrit Reviews

                  There are no open Gerrit changes