-
Bug
-
Resolution: Done
-
P2: Important
-
5.3.0 Beta1
-
iPhone 5s
-
-
428b92583ee2102c7ef16776a9b7785df7ff4e2c
If I patch this into the Qt source (qquickimagebase.cpp), it works nicely:
resolve2xLocalFile(d->url, targetDevicePixelRatio, &loadUrl, &d->devicePixelRatio); if (d->url.path().contains("svg")) { qDebug() << Q_FUNC_INFO << d->url << targetDevicePixelRatio << loadUrl << d->devicePixelRatio; d->devicePixelRatio = targetDevicePixelRatio; } d->pix.load(qmlEngine(this), loadUrl, d->sourcesize * d->devicePixelRatio, options);
My suggestion would be that SVG always allows the targetDevicePixelRatio.
For Gerrit Dashboard: QTBUG-38991 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
98435,1 | Apply the devicePixelRatio on SVG files when loaded through QQuickImage | dev | qt/qtdeclarative | Status: ABANDONED | +1 | 0 |
103687,7 | High-dpi SVG and QQuickImageProvider Images | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |
112739,3 | Fix the implicitSize of SVG Images on retina display | 5.5 | qt/qtdeclarative | Status: MERGED | +2 | 0 |