Creating image reflection using QML



  • Hello,

    I was trying to create image reflection using QML but its not created as per my requirement. So could anyone help me how to do same. My Code as follows.


    import QtQuick 2.5
    Item {
    width: 600
    height: 600
    Rectangle {
    x:0
    y:300
    color: "#272822"
    width: 600
    height: 300
    }
    Item {
    Image {
    id: image1
    x: 150
    y: 50
    width: 200
    height: 248
    source: "images/image.jpg"
    }
    Image {
    id: image2
    x: 150
    y: 298
    rotation: 180
    width: 200
    height: 248
    source: "images/image.jpg"
    sourceSize.width:200
    sourceSize.height:100
    clip : true
    smooth:true
    mirror:true
    opacity:0.3
    }
    }
    }

    I required like : http://www.steelskies.com/coverflow/



  • Any update regarding same this implementation.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.