本文主要介绍如何展示不同大小尺寸的图片,并加上边框。实现步骤如下。
1、实现不同尺寸的图片的展示。主要运用OpacityMask实现圆角功能。
Rectangle {
width: image_area.paintedWidth
height: image_area.paintedHeight
radius: 5
property alias url: image_area.source
property int size: 200
本文主要介绍如何展示不同大小尺寸的图片,并加上边框。实现步骤如下。
1、实现不同尺寸的图片的展示。主要运用OpacityMask实现圆角功能。
Rectangle {
width: image_area.paintedWidth
height: image_area.paintedHeight
radius: 5
property alias url: image_area.source
property int size: 200