Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.3.0 Beta1
-
iPhone 5s
-
-
428b92583ee2102c7ef16776a9b7785df7ff4e2c
Description
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.