Hi,
I am using the scene scaling strategy (scene size: 320×480, multi resolution images, etc.). It works fine until I use some ShaderEffects like: DropShadow or ColorOverlay. Such items look blurred on hd/hd2 devices. I use the following workarounds:
-for images:
MultiResolutionImage {
id: image
source: "../assets/img/gear.png"
visible: false
Component.onCompleted: {
width *= 4;
height *= 4;
}
}
ColorOverlay {
width: 0.25*image.width
height: 0.25*image.height
source: image
color: "red"
anchors.bottom: parent.bottom
anchors.right: parent.right
}
– for texts:
Text {
id: text
text: qsTr("text")
font.pixelSize: 28
visible: false
Component.onCompleted: {
width *= 4;
height *= 4;
font.pixelSize *= 4;
}
}
DropShadow {
anchors.left: parent.left
width: text.width
height: text.height
scale: 0.25
transformOrigin: Item.TopLeft
horizontalOffset: 0
verticalOffset: 8
radius: 8
samples: 20
color: "#80000000"
source: text
}
However I don’t like their complexity. Is there any better way of using ShaderEffects?