When manually adding menu items via addItem() the pressed, triggered and activeFocusChanged signal handlers are not added. Which means the menu does not close when the menu item is selected.
These handlers are only added when menu items are assigned via the contentData property.
|For Gerrit Dashboard: QTBUG-53274|
|158680,2||Menu: support dynamically added items in the same way as static ones||5.7||qt/qtquickcontrols2||Status: MERGED||+2||0|