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

Image::sourceSize property does not document example use

XMLWordPrintable

    • 6b5d58554cdc1c18c73bfb39e736a3621959ca4c

      The sourceSize property can be set by assigning width and height subproperties. The following example will ensure that the image only allocates storage needed for the visual representation, irrespective of how large the source image is - i.e. it will fill the Image storage bounds to parent, not using the image source native resolution;

      Image {
         anchors.fill: parent
         source: "images/reallyBigImage.jpg"
         sourceSize.width: width
         sourceSize.height: width
      }

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

            martjone Martin Jones (closed Nokia identity) (Inactive)
            hhartz Henrik Hartz (closed Nokia identity) (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes