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

ItemDelegate "padding" property doesn't set top/bottom padding any more

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P3: Somewhat important
    • None
    • 5.11.0
    • Quick: Controls 2
    • None
    • Android, Linux/X11
    • 4e11d09fdef369af130c86a81df599ee3273ac7d

    Description

      Following code:

      ItemDelegate {
        height: 100
        width: 200
        padding: 0
          contentItem: Rectangle { color: "blue" }
      }

       With Qt 5.9 this would paint the contentItem Rectangle the same size as the ItemDelegate itself. However, with Qt 5.11.0 (didn't test 5.10) this would add top and bottom padding to the contentItem. In order to achieve the same result as before, one now has to set:

      padding: 0
      topPadding: 0
      bottomPadding: 0

      This seems like wrong behavior and a regression to me.

      Attachments

        For Gerrit Dashboard: QTBUG-69551
        # Subject Branch Project Status CR V

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            mzanetti Michael Zanetti
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes