// file: poc-qt/poc005/qml/main.qml import QtQuick import QtQuick.Controls import QtQuick.Layouts import com.sasedev.gstpreview01 ApplicationWindow { visible: true width: 600 height: 300 title: "POC005 - GStreamer Rust" GstController { id: gstController } ColumnLayout { anchors.centerIn: parent spacing: 12 Button { text: "Start webcam (GStreamer)" enabled: !gstController.started onClicked: gstController.startPreview() } Button { text: "Stop" enabled: gstController.started onClicked: gstController.stopPreview() } Label { text: gstController.started ? "Started" : "Stopped" } } }