Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
6.9
-
None
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.