Files
poc-qt/poc005/qml/main.qml
2026-04-04 12:02:23 +02:00

39 lines
779 B
QML

// 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"
}
}
}