Debian Codegraph @

tests/examples/qt6d3d11/qml6d3d11sink/qml6d3d11sink.qml

raw
1 import QtQuick 6.0
2 import QtQuick.Controls 6.0
3 import QtQuick.Dialogs 6.0
4 import QtQuick.Window 6.0
5
6 import org.freedesktop.gstreamer.Qt6D3D11VideoItem 1.0
7
8 ApplicationWindow {
9 id: window
10 visible: true
11 width: 640
12 height: 480
13 x: 30
14 y: 30
15 color: "black"
16
17 Item {
18 anchors.fill: parent
19
20 GstD3D11Qt6VideoItem {
21 id: video
22 objectName: "videoItem"
23 anchors.centerIn: parent
24 width: parent.width
25 height: parent.height
26 }
27
28 Rectangle {
29 color: Qt.rgba(1, 1, 1, 0.3)
30 border.width: 1
31 border.color: "white"
32 anchors.bottom: video.bottom
33 anchors.bottomMargin: 15
34 anchors.horizontalCenter: parent.horizontalCenter
35 width : parent.width - 30
36 height: parent.height - 30
37 radius: 8
38
39 MouseArea {
40 id: mousearea
41 anchors.fill: parent
42 hoverEnabled: true
43 onEntered: {
44 parent.opacity = 1.0
45 hidetimer.start()
46 }
47 }
48
49 Timer {
50 id: hidetimer
51 interval: 5000
52 onTriggered: {
53 parent.opacity = 0.0
54 stop()
55 }
56 }
57 }
58 }
59 }