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

Allow user defined width for Menu and MenuItem in Universal style

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Done
    • P2: Important
    • 5.6.0
    • 5.6.0 Beta
    • Quick: Controls 2
    • None
    • 0cf2f3f63472540e45f08e6c61d1662a5ec3f218 7427e2808324388678eefda45b3e83c675979290

    Description

      Currently, the implicitWidth of both Menu and MenuItem.background is set to a fixed value of 200. For smaller MenuItem labels this will cause a lot of empty space in the Menu, see attached screenshot.

      I therefore suggest to
      a) allow user defined width for Menu and MenuItem
      and/or even better:
      b) to automatically adjust the menu width to the largest width of the containing MenuItems.

      I'm not sure, but maybe a) will be resolved with https://bugreports.qt.io/browse/QTBUG-50471?focusedCommentId=303257&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-303257 ?

      Attachments

        1. example2.zip
          1 kB
        2. screenshot.png
          screenshot.png
          25 kB
        3. screenshot2.png
          screenshot2.png
          6 kB
        For Gerrit Dashboard: QTBUG-50572
        # Subject Branch Project Status CR V

        Activity

          People

            Unassigned Unassigned
            kmichel K. Michel
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes