You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

30 lines
523 B

import QtQuick 2.0
Rectangle {
id: container
width: 30
height: 30
property string caption: "Button"
signal clicked
Image {
id: menuButtonBackground
source: "Resources/menubtn-background.png"
anchors.fill: parent
}
Text {
id: menuButtonLabel
anchors.centerIn: container
color: "White"
text: container.caption
}
MouseArea {
id: mouseArea
anchors.fill: parent
onClicked: container.clicked();
}
}