From 7ab94bb053cf1081821583e7fab57529f64d6991 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=EA=A6=AB=EA=A6=B6=EA=A6=8F=EA=A7=80=EA=A6=A6?= =?UTF-8?q?=EA=A6=BF=EA=A6=A7=EA=A6=AE=EA=A6=91=EA=A6=A9=EA=A6=AD=EA=A7=80?= 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.2.3