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

Allow setting a flag to control whether or not ComboBox's popup is allowed to obscure the contentItem

    XMLWordPrintable

Details

    Description

      Sometimes QQuickPopupPositioner will position ComboBox's popup in such a way that it hides the current item:

      import QtQuick 2.12
      import QtQuick.Controls 2.12
      import QtQuick.Window 2.12
      
      ApplicationWindow {
          visible: true
          width: 640
          height: 190
      
          ComboBox {
              model: 100
              anchors.horizontalCenter: parent.horizontalCenter
          }
      }
      

      It seems some UIs intentionally do this:

      However, other styles might not want this, so a flag to control it could be useful.

      How it will work is unclear, as the positioner would need to be aware of the contentItem.

      Attachments

        Issue Links

          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
              mitch_curtis Mitch Curtis
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes