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

QMenu closes unexpectedly and action slot is not called

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.12.9, 5.15.2, 6.2.3, 6.3.0 Beta2
    • GUI: Menus
    • None
    • Linux/X11, macOS, Windows

    Description

      See attached example. A QMenu will be opened when the "MENU" button is pressed. In this menu the button "BUTTON" does nothing, except printing to stdout when pressed. Especially the menu stays open. The submenu below the button contains three entries. While this submenu is still open (i.e. mouse hovered over "SUBMENU") and the "BUTTON" is pressed at the same time, the complete menu closes and the button's slot is not called.

      Attachments

        1. main.cpp
          0.2 kB
        2. mainwindow.h
          1 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            ablotz Alan Blotz
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes