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

ComboBox with Material theme gets cut off if it is at the bottom of the screen

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.15.2, 5.15
    • Quick: Controls 2
    • Only tested on desktop environment. I haven't tested this on mobile yet.
    • Linux/X11

    Description

      First, in either the C++ or the qtquickcontrols2.conf, set the style to be "Material"

       

      Then, run this code:

      import QtQuick 2.15
      import QtQuick.Window 2.15
      import QtQuick.Controls 2.15
      import QtQuick.Controls.Material 2.15
      
      ApplicationWindow  {
          width: 640
          height: 480
          visible: true
          title: qsTr("Hello World")
      
          ComboBox {
              Component.onCompleted: {
                  var makeMeModel = [];
                  for(var i=0;i<15;i++) {
                      makeMeModel.push(i);
                  }
                  model = makeMeModel;
              }
      
              anchors.bottom: parent.bottom
              anchors.left: parent.left
          }
      }
      
      

       

      Then, click on the combo box and select "8". Then, click on the combobox again and you will notice that you can't easily select "14" anymore! It gets cut off each time.

      This only applies to the Material Theme. The cutoff doesn't happen on other themes. Also, this only happens when the ComboBox is at the bottom of the screen. Resizing the window doesn't fix it.

      Attachments

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

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            tshah Tej Shah
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes