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

Implement support for native Popups and Menus

    XMLWordPrintable

Details

    • d84556e6b (wip/nativemenus), bedbc950d (wip/nativemenus), 01f06efa2 (wip/nativemenus), e1d423090 (wip/nativemenus), 9563db876 (wip/nativemenus), c48ef8428 (wip/nativemenus), 6ea3edd49 (wip/nativemenus), 78f5ea6d5 (wip/nativemenus), f1bb9cfbf (dev)

    Description

      Popup and Menu seem to be implemented as adding a QtQuick item to the parent window instead of opening a new window.

      This has some drawbacks that make it very hard to properly implement context menus:

      • The context menu is clipped to the parent window. That means the context menu is cut off if the parent window is small (like a small notification window / message box)
      • The context menu gains focus when opened, which means the control that previously had focus looses it. This makes it impossible to implement a "Copy" action in a context menu, as the textedit that had focus previously looses it, which clears the selection (and therefore the copy action has nothing to copy anymore)

      Menu and Popup should be normal windows, at least on the desktop, to be able to implement context menus that behave properly.

      Attachments

        Issue Links

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

          Activity

            People

              mitch_curtis Mitch Curtis
              tmcguire_pix4d Thomas McGuire
              Votes:
              23 Vote for this issue
              Watchers:
              36 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes