效果:
1.引入包:
import QtGraphicalEffects 1.12
2. 修改SVG颜色
Image{
id: image
width: 48
height: 48
anchors.horizontalCenter: parent.horizontalCenter
source: "svg图片路径"
ColorOverlay{
anchors.fill: image
source: image
color: "red" //修改后的svg图片颜色
}