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

Image in ColumnLayout does not get its width updated with fillMode: Image.PreserveAspectFit

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.12.8, 5.14.2
    • Quick: Layouts
    • None

    Description

      Image does not get its width updated in ColumnLayout if Layout.preferredHeight is used and fillMode: Image.PreserveAspectFit is used. Image will scale correctly but the width stays the same as source width. This causes issues for example with alignment.

      Image that is not in ColumnLayout will have its width updated automatically if height is set.

      Example project attached.

       

      Attachments

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

        Activity

          People

            smd Jan Arve
            tero.pelkonen Tero Pelkonen
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes