也许你开启了图像的抗锯齿和平滑过后,图像的边缘还是不太顺滑,你可以设置mipmap这个属性让图像的边缘变得顺滑
比如这样:
Image {
id: bgImg
anchors.fill: parent
smooth: true
antialiasing: true
mipmap: true
fillMode: Image.PreserveAspectCrop
}
也许你开启了图像的抗锯齿和平滑过后,图像的边缘还是不太顺滑,你可以设置mipmap这个属性让图像的边缘变得顺滑
比如这样:
Image {
id: bgImg
anchors.fill: parent
smooth: true
antialiasing: true
mipmap: true
fillMode: Image.PreserveAspectCrop
}
本文由 CharSaMa's blog 创作,采用 知识共享署名-非商业性使用-相同方式共享 4.0 国际许可协议(CC BY-NC-SA 4.0) 授权。
© 2025 CharSaMa's blog。协议全文:法律文本