I have just this simple qml application, that should output background color, when is clicked. Actually it still outputs undefined
.
import QtQuick 2.1
import QtQuick.Controls 1.0
ApplicationWindow {
title: qsTr("Hello World")
width: 1400
height: 800
color: "#414141"
menuBar: MenuBar {
Menu {
title: qsTr("File")
MenuItem {
text: qsTr("Exit")
onTriggered: Qt.quit();
}
}
}
MouseArea {
anchors.fill: parent
onClicked: {console.log(parent.color)}
}
}