Details
-
Bug
-
Resolution: Fixed
-
P3: Somewhat important
-
5.14.0, 5.14.2, 5.15.6, 6.2.0
Description
Following will make rendered svg smaller by device pixel ratio (ie. at 2x will become half size):
Image {
source: "file.svg"
sourceSize: Qt.size(width,height)
}
Looks like it is evaluated before the final size is known, which is expected, so it sets it 0x0 initially. But after the image is loaded, the size reported by width and height properties seems to be half the expected size at 2x scale ratio.
Attachments
Issue Links
- relates to
-
QTBUG-58416 QtQuick Image: SVG Images are not properly scaled with High DPI Scaling
- Closed
For Gerrit Dashboard: QTBUG-81018 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
376579,10 | Image: make default sourceSize respect DPR for scalable images | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |
376789,1 | QSvgIOHandler: support DevicePixelRatio | dev | qt/qtsvg | Status: ABANDONED | 0 | 0 |
376791,1 | WIP: Add DevicePixelRatio support to QImageReader, QImageIOHandler | dev | qt/qtbase | Status: ABANDONED | -2 | 0 |
377213,2 | Image: make default sourceSize respect DPR for scalable images | 6.2 | qt/qtdeclarative | Status: MERGED | +2 | 0 |