37 lines
621 B
QML
37 lines
621 B
QML
// Copyright (c) Daniel Gakwaya.
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
import QtQuick
|
|
|
|
Item {
|
|
|
|
property alias rectColor: receiverRectId.color
|
|
width: receiverRectId.width
|
|
height: receiverRectId.height
|
|
|
|
|
|
function receiveInfo( count){
|
|
receiverDisplayTextId.text = count
|
|
console.log("Receiver received number: "+ count)
|
|
}
|
|
|
|
|
|
|
|
|
|
Rectangle {
|
|
id: receiverRectId
|
|
width: 200
|
|
height: 200
|
|
color: "blue"
|
|
|
|
|
|
Text {
|
|
id: receiverDisplayTextId
|
|
anchors.centerIn: parent
|
|
font.pointSize: 20
|
|
text: "0"
|
|
}
|
|
}
|
|
|
|
}
|