Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Item {
- id: videoOverlayWindow
- // color: "transparent"
- anchors.fill: videoWindow
- // z: 1
- Repeater {
- model: personDisplayDetailsModel
- delegate: Item {
- Rectangle {
- id: faceBoundaryBoxRect
- x: xCoord
- y: yCoord
- height: faceHeight
- width: faceWidth
- color: "transparent"
- border.color: frID < 0 ? "red" : "green"
- border.width: 3
- visible: peopleidentificationmainwindow.faceCount > 0
- }
- Rectangle {
- id: faceBoundaryBoxRectBackgroundColor
- anchors {
- fill: faceBoundaryBoxRect
- // margins: faceBoundaryBoxRect.border.width
- }
- opacity: 0
- MouseArea {
- // enabled: frID < 0 && peopleidentificationmainwindow.isRegisterMode
- id: faceBoundaryBoxRectBackgroundColorMouseArea
- acceptedButtons: Qt.AllButtons
- anchors.fill: faceBoundaryBoxRectBackgroundColor
- hoverEnabled: true
- onEntered: {
- faceBoundaryBoxRectBackgroundColor.opacity = 0.3
- }
- onExited: {
- faceBoundaryBoxRectBackgroundColor.opacity = 0
- }
- onClicked: {
- if (mouse.button == Qt.RightButton)
- parent.color = 'blue';
- else
- parent.color = 'red';
- }
- }
- }
- }
- }
- }
Add Comment
Please, Sign In to add comment