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

ComboBox popup does not exploit available space

    XMLWordPrintable

Details

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

    Description

      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
      	}
      }
      

      Attachments

        1. qt_1_sketch.png
          qt_1_sketch.png
          20 kB
        2. qt_1.png
          qt_1.png
          18 kB
        3. qt_2.png
          qt_2.png
          20 kB
        For Gerrit Dashboard: QTBUG-55050
        # Subject Branch Project Status CR V

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            DanielSt Peter Staab
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes