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

Native Quick Menu emits signals in wrong order

    XMLWordPrintable

Details

    • Windows

    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

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

        Activity

          People

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

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There is 1 open Gerrit change