lena_pi/LenaPi/RoundButton.qml
2021-03-13 17:06:39 +01:00

40 lines
763 B
QML

import QtQuick 2.0
import QtQuick.Controls 2.4
/**
* @brief Round button containing an image
*/
Button {
id: container
property alias imageSource: image.source
background: Rectangle{
border.width: 2
border.color: "grey"
color: "white"
implicitWidth: 65
implicitHeight: width
radius: width/2
Image{
id: image
anchors.centerIn: parent
width: 30
height: width
source: "qrc:/icon_back"
}
Rectangle{
id: overlay
z: 1
visible: !container.enabled
anchors.centerIn: parent
width: 30
height: width
color: "#99ffffff"
}
}
}