// file: poc-qt/poc006/qml/main.qml

import QtQuick
import QtQuick.Controls
import QtQuick.Layouts
import org.freedesktop.gstreamer.Qt6GLVideoItem 1.0

ApplicationWindow {
    visible: true
    width: 960
    height: 700
    title: "POC006 - GStreamer qml6glsink"

    color: "black"

    GstGLQt6VideoItem {
        id: video
        objectName: "videoItem"
        anchors.fill: parent
    }

    Rectangle {
        anchors.left: parent.left
        anchors.right: parent.right
        anchors.bottom: parent.bottom
        height: 48
        color: "#66000000"

        Text {
            anchors.centerIn: parent
            color: "white"
            text: "POC006 - webcam preview via GStreamer qml6glsink"
        }
    }
}
