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

QMenu::separatorsCollapsible not carried over when the menu is torn off

    XMLWordPrintable

Details

    Description

      If a QMenu has tearOffEnabled and separatorsCollapsible both set to true, and then the menu is torn off, then the torn off menu will have separatorsCollapsible as false.

      I hit this while implementing separators with labels in a custom style (similar to what the cleanlooks style has). We are using separators with labels to provide a description for sections of menu items, but when the men is torn off we lose the first separator.

      We are on 4.8.5 and I haven't checked newer versions yet.

      Looks like the fix is to set this in the QTornOffMenu constructor.

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            tfowler Tim Fowler
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes