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

Native Quick Menu emits signals in wrong order

    XMLWordPrintable

Details

    • Windows
    • 5f30988f0 (dev)

    Description

      A QtQuick.Controls.Menu with the new with popupType property set to Native on Windows causes the closed signal to be emitted before any of the menu's Action items emit their triggered signals.

      This can make it tricky to use native menus in some scenarios as they don't behave the same as their item based equivalent. For example it makes it tricky to do dynamic instantiation or reusing of menus (to improve app performance) as the Menu will get destroyed or "pooled" too early.

      I've attached a test project that can be used to show how this causes problems if trying to use the menu in an Instantiator.

      I ran into this with qtbase 987c6d2d75429444f866bd17ccc24227198b090f but I suspect it's an issue in Qt 6.8 as well.

      Attachments

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

        Activity

          People

            morteza.jamshidi Morteza Jamshidi
            haiku Ollie Dawes
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes