From 7ab94bb053cf1081821583e7fab57529f64d6991 Mon Sep 17 00:00:00 2001 From: ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ Date: Mon, 26 Sep 2022 22:27:13 +0800 Subject: Round the card image corners but haven't found a way to not round the bottom edges --- GridCard.ui.qml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/GridCard.ui.qml b/GridCard.ui.qml index 2dde55e..d000680 100644 --- a/GridCard.ui.qml +++ b/GridCard.ui.qml @@ -29,6 +29,14 @@ Item { height: parent.width * 3 / 4 } anchors.top: parent.top + layer.enabled: true + layer.effect: OpacityMask { + maskSource: Rectangle { + width: image.width + height: image.height + radius: 10 + } + } } Item { -- cgit v1.3