Quantcast
Channel: Qt DevNet forums: Qt Quick 1283365070**
Viewing all articles
Browse latest Browse all 4972

Rounded Image Corners

$
0
0
Hi Andre, thanks for your reply. However enabling clipping sadly did not solve the problem. This is the updated code: import QtQuick 2.0   Image {     id: background     source: "../background.jpg"     width: 360     height: 360     focus: true         Rectangle {         id: rectangle         x: 30         y: 30         width: 300         height: 300         color: "#ffffff"         radius: 20         border.width: 5         border.color: "#000000"         clip: true           Image {             id: image             width: 300             height: 300             source: "../example.jpg"                   }     } } Do you have an idea how to fix this issue?

Viewing all articles
Browse latest Browse all 4972

Latest Images

Trending Articles



Latest Images