gstpreview01
This commit is contained in:
38
poc005/qml/main.qml
Normal file
38
poc005/qml/main.qml
Normal 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"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user