From eeb9e043e3c2b8a335848b8b9bae83c5b2854ca3 Mon Sep 17 00:00:00 2001
From: cbwu <504-wuchengbo@htsdfp.com>
Date: Thu, 15 Aug 2024 13:38:13 +0800
Subject: [PATCH] =?UTF-8?q?feat:=20=E4=B8=89=E7=BB=B4=E5=BB=BA=E6=A8=A1?=
=?UTF-8?q?=E6=8B=89=E6=B5=81=EF=BC=8Cui=E5=BE=AE=E8=B0=83?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
modelcameradlg.cpp | 18 +++++++++++++-----
modelcameradlg.ui | 8 ++++----
2 files changed, 17 insertions(+), 9 deletions(-)
diff --git a/modelcameradlg.cpp b/modelcameradlg.cpp
index ebe62a9..3836926 100644
--- a/modelcameradlg.cpp
+++ b/modelcameradlg.cpp
@@ -128,11 +128,19 @@ void ModelCameraDlg::on_OFFBtn_clicked()
//播放视频
void ModelCameraDlg::on_pushButton_5_clicked()
{
- QString ip = ui->videoIPLineEdit->text();
- ui->cameraVideoWidget->setUrl(ip);
- ui->cameraVideoWidget->play();
-
- ui->cameraVideoWidget->m_PlayStatus = false;
+ QString str = ui->pushButton_5->text();
+ if(str == "播放视频")
+ {
+ QString ip = ui->videoIPLineEdit->text();
+ ui->cameraVideoWidget->play();
+ ui->cameraVideoWidget->setUrl(ip);
+ ui->pushButton_5->setText("暂停播放");
+ }
+ else
+ {
+ ui->cameraVideoWidget->stop();
+ ui->pushButton_5->setText("播放视频");
+ }
}
//快门速度
diff --git a/modelcameradlg.ui b/modelcameradlg.ui
index 362d420..c82e033 100644
--- a/modelcameradlg.ui
+++ b/modelcameradlg.ui
@@ -118,16 +118,16 @@
4
-
-
+
+
+ 4
+
11
12
-
- 4
-
-