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

QMenu is not closed when parent window is cloed

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Invalid
    • Affects Version/s: 5.15.4
    • Fix Version/s: None
    • Component/s: GUI: Menus
    • Environment:
      Desktop
    • Platform/s:
      macOS

      Description

      If QMenu is created and set to QPushButton and QMenu::exec is called to show the menu. While the menu is shown click the red X button to close the parent window, closes the widget but menu still is shown as orphan.
      In attached example
      -Click Show WIndow
      -Click Me
      -close window
      Menu remain visible.

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            qt.team.quick.subscriptions Qt Quick and Widgets Team
            Reporter:
            irfan.omair@digia.com Irfan Omair
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes