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

QMenu breaks when removing last action

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.5.1
    • None
    • Ubuntu Xenial with Qt 5.5.1

    Description

      When the last QAction is being removed the QMenu renders the string "Activate". Subsequently added actions are no shown anymore (while the QMenu API still reports the correct actions).

      I have create a minimal example which demonstrates the problem: https://gist.github.com/dirk-thomas/ad2df445e150c0a3545a357ef3da806c
      After building it use the two command action to append / pop actions to the second menu. After appending once and popping once the list menu is not empty but show the mentioned string. Afterwards appending further actions are not rendered in the list menu anymore.

      Attachments

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

        Activity

          People

            peppe Giuseppe D'Angelo
            dirkthomas Dirk Thomas
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes