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

Menu trim items with long text

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.7.0 Beta
    • Quick: Controls 2
    • None

    Description

      If I place item with long into menu, the menu not resized to contain that item.

      import QtQuick 2.6
      import QtQuick.Controls 2.0
      
      ApplicationWindow {
          visible: true
          width: 640
          height: 480
      
          Menu {
              x: 100
              y: 100
      
              MenuItem {
                  text: "Test text"
              }
              MenuItem {
                  text: "Test text, that is somewhat longer than background"
              }
              Component.onCompleted: open()
          }
      }
      

      Attachments

        1. menu_long_item.png
          11 kB
          Nikita Krupenko

        Issue Links

          Activity

            People

              qt.team.quick.subscriptions Qt Quick and Widgets Team
              krnekit Nikita Krupenko
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated: