diff --git a/src/private/dquickiconimage.cpp b/src/private/dquickiconimage.cpp index a2f19c1..1cc6335 100644 --- a/src/private/dquickiconimage.cpp +++ b/src/private/dquickiconimage.cpp @@ -22,7 +22,12 @@ bool DQuickIconImagePrivate::updateDevicePixelRatio(qreal targetDevicePixelRatio return true; } #endif + qreal ratio = devicePixelRatio; devicePixelRatio = targetDevicePixelRatio > 1.0 ? targetDevicePixelRatio : calculateDevicePixelRatio(); + + if (ratio != devicePixelRatio) + maybeUpdateUrl(); + return true; }