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

Button with menu does not have correct sizeHint on Ubuntu

    XMLWordPrintable

Details

    Description

      The button text is truncated when setting a menu.

      ApplicationWindow {
          title: qsTr("Hello World")
          width: 640
          height: 480
      
      
          Button {
              text: qsTr("Hello World")
              anchors.centerIn: parent
              menu: Menu {
                  title: qsTr("myMenu")
                  MenuItem {
                      text: qsTr("Hello1")
                  }
              }
          }
      }
      

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            carochao Caroline Chao (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes