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

Universal style ItemDelegate missing implicit background height

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P3: Somewhat important
    • None
    • 5.12
    • Quick: Controls 2
    • None

    Description

      This results in ItemDelegates shrinking when their text is cleared, which breaks consistency with all other delegates in a list.

      import QtQuick 2.12
      import QtQuick.Controls 2.12
      
      ApplicationWindow {
          width: 640
          height: 480
          visible: true
      
          ListView {
              model: 100
              anchors.fill: parent
              delegate: ItemDelegate {
                  text: "foo"
                  width: parent.width
                  onClicked: text = ""
              }
          }
      }
      

      Attachments

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

        Activity

          People

            mitch_curtis Mitch Curtis
            mitch_curtis Mitch Curtis
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes