Parent-child
-
@qcoderpro I'm including a snippet of the code you referenced:
Rectangle { property int count: 9 ... MouseArea { anchors.fill: parent onClicked: { theModel.append({"number": ++parent.count}) } } }If you're asking if the parent of the MouseArea is the Rectangle, I believe the answer is "yes." I'm curious -- why do you ask?
-
@qcoderpro I'm including a snippet of the code you referenced:
Rectangle { property int count: 9 ... MouseArea { anchors.fill: parent onClicked: { theModel.append({"number": ++parent.count}) } } }If you're asking if the parent of the MouseArea is the Rectangle, I believe the answer is "yes." I'm curious -- why do you ask?