import QtQuick 1.0 Image { id: button source: "images/button.png" property string labelText signal buttonClicked() Text { id: label text: labelText color: "white" anchors.horizontalCenter: parent.horizontalCenter anchors.top: parent.top anchors.topMargin: 6 } MouseArea { anchors.fill: parent onClicked: { button.buttonClicked(); } } }