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(); } } }