it WORKSSSSSSSSSSSSSS...on linux laptop
finally, we have a simple example to expand and test on device
This commit is contained in:
@@ -26,35 +26,35 @@ ApplicationWindow {
|
||||
height: parent.height
|
||||
}
|
||||
|
||||
Rectangle {
|
||||
color: Qt.rgba(1, 1, 1, 0.7)
|
||||
border.width: 1
|
||||
border.color: "white"
|
||||
anchors.bottom: video.bottom
|
||||
anchors.bottomMargin: 15
|
||||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
width : parent.width - 30
|
||||
height: parent.height - 30
|
||||
radius: 8
|
||||
|
||||
MouseArea {
|
||||
id: mousearea
|
||||
anchors.fill: parent
|
||||
hoverEnabled: true
|
||||
onEntered: {
|
||||
parent.opacity = 1.0
|
||||
hidetimer.start()
|
||||
}
|
||||
}
|
||||
|
||||
Timer {
|
||||
id: hidetimer
|
||||
interval: 5000
|
||||
onTriggered: {
|
||||
parent.opacity = 0.0
|
||||
stop()
|
||||
}
|
||||
}
|
||||
}
|
||||
// Rectangle {
|
||||
// color: "red"
|
||||
// border.width: 1
|
||||
// border.color: "white"
|
||||
// anchors.bottom: video.bottom
|
||||
// anchors.bottomMargin: 15
|
||||
// anchors.horizontalCenter: parent.horizontalCenter
|
||||
// width : parent.width - 30
|
||||
// height: parent.height - 30
|
||||
// radius: 8
|
||||
//
|
||||
// MouseArea {
|
||||
// id: mousearea
|
||||
// anchors.fill: parent
|
||||
// hoverEnabled: true
|
||||
// onEntered: {
|
||||
// parent.opacity = 1.0
|
||||
// hidetimer.start()
|
||||
// }
|
||||
// }
|
||||
//
|
||||
// Timer {
|
||||
// id: hidetimer
|
||||
// interval: 5000
|
||||
// onTriggered: {
|
||||
// parent.opacity = 0.0
|
||||
// stop()
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user