Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
4.7.0
-
None
-
6b5d58554cdc1c18c73bfb39e736a3621959ca4c
Description
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
}
Attachments
Issue Links
- resulted from
-
QTBUG-10223 Images are decoded at full resolution, potentially causing excess memory commit
- Closed