Image rounded corners in QML

前端 未结 7 1092
遇见更好的自我
遇见更好的自我 2020-12-14 06:25

To my surprise, the Image component has no radius property. I tried emulating the rounded corners by putting the image in a rounded Rectangle

7条回答
  •  误落风尘
    2020-12-14 06:34

    QML currently supports only rectangular clipping, but you might want to take a look at DeclarativeMaskedImage in qt-components project:

    http://qt.gitorious.org/qt-components/qt-components/blobs/master/src/symbian/sdeclarativemaskedimage.h

提交回复
热议问题