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

ComboBox popup does not exploit available space

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P2: Important P2: Important
    • 5.8.0
    • 5.7.0
    • Quick: Controls 2
    • None
    • 1fbc51b4f285692206a4c0cdf132963638919e6e

      The ComboBox selection popup has the same size as the ComboBox control. When one of the selection entries ("DDDD" in the example") needs more space than the combobox size then the item is truncated. I think it would be more convenient to scale the selection dialog within the available space on the right side.

      RowLayout {
      	width: parent.width
      
      	Label {
      		text: qsTr("Test") + ":"
      	}
      	ComboBox {
      		model:["A", "BB", "CCC", "DDDD"]
      		Layout.fillWidth: true
      	}
      
      	Button {
      		text: "P"
      		Layout.fillWidth: true
      	}
      }
      

        1. qt_1.png
          18 kB
          Peter Staab
        2. qt_2.png
          20 kB
          Peter Staab
        3. qt_1_sketch.png
          20 kB
          Peter Staab
        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
            DanielSt Peter Staab
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes