gstpreview01

This commit is contained in:
2026-04-04 12:02:23 +02:00
parent b669a0ba81
commit e1c8894b72
7 changed files with 535 additions and 1 deletions

38
poc005/qml/main.qml Normal file
View File

@@ -0,0 +1,38 @@
// 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"
}
}
}