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

Save image from qml

$
0
0
Alek smierciak thank you. I tried an approach which is not working. here is the code import QtQuick 2.0   Rectangle {     width: 640     height: 480     color: "white"       Image {         id: imgItem         fillMode: Image.PreserveAspectFit         source: "/home/bts-004/Desktop/test1.jpg"     }       MouseArea {         anchors.fill: parent         onClicked: {             canobj.loadImage("/home/bts-004/Desktop/test1.jpg")             canobj.save("/home/bts-004/Desktop/test_duplicate.jpg")         }     }     Canvas{         id:canobj     } } Is there any thing I have to add.

Viewing all articles
Browse latest Browse all 4972

Trending Articles