Nominate our 2022 Qt Champions!

QML menu does not close/dismiss

  • Hi,

    I've got a Menu with MenuItems in Qml into my application compiled for WinRT / UWP.

    When I click the menu title, the list of MenuItems shows and I can select one as expected.

    If I want to close the menu, I can dismiss it with ESC key. I also expect this menu to be closed when I click anywhere else or by clicking the main Menu title again. This does no occur and I have no other possibility to close the menu than the ESC key.

    What should be the normal debahior of the menu ?
    Do I have to do anything to enable those actions (close when focus lost) ?

    I'm using Qt 5.7 compiled with MSVC2015.

    Thanks for you help.

  • Call Menu.popup to dismiss/close

Log in to reply