lena_pi/LenaPi/RoundButton.qml
2018-10-20 18:06:19 +02:00

32 lines
519 B
QML

import QtQuick 2.0
Rectangle {
id: container
property alias imageSource: image.source
signal clicked();
border.width: 2
border.color: "grey"
color: "white"
width: 65
height: width
radius: width/2
Image{
id: image
anchors.centerIn: parent
width: 30
height: width
source: "qrc:/icon_back"
}
MouseArea{
id: controlObject
anchors.fill: parent
onClicked:{
container.clicked();
}
}
}