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

Long text doesn't fit in Quick Controls MenuItem and Menu

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 5.5.1
    • Quick: Controls 1
    • None
    • Windows 7
      Windows 8.1
      Windows 10

      Part of the MenuItem text goes outside of the visible area or overlaps with shortcut text and part of the Menu title goes under the submenu indicator.

      You should be able to reproduce the problem with the following QML:

      LongTextInMenuBug.qml
      import QtQuick 2.4
      import QtQuick.Controls 1.4
      
      ApplicationWindow {
              width: 250
              height: 50
      
              menuBar: MenuBar {
                      Menu {
                              title: "item"
                              MenuItem {
                                      text: longText.text
                              }
                      }
                      Menu {
                              title: "menu"
                              Menu {
                                      title: longText.text
                              }
                      }
                      Menu {
                              title: "shortcut"
                              MenuItem {
                                      text: longText.text + " with shortcut"
                                      shortcut: "Ctrl+G"
                              }
                      }
              }
      
              Text {
                      id: longText
                      anchors.centerIn: parent
                      text: "Really long text to be placed in the menu item"
              }
      }
      

        1. QTBUG-50849.patch
          1.0 kB
          Kimmo Karvinen
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            kkarvinen Kimmo Karvinen
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes