更新代码

This commit is contained in:
feiyangqingyun
2022-11-01 14:28:42 +08:00
parent da26b689e4
commit 2ce7ba59df
17 changed files with 230 additions and 228 deletions

View File

@@ -0,0 +1,35 @@
#pragma execution_character_set("utf-8")
#include "frmvideowindow.h"
#include "ui_frmvideowindow.h"
frmVideoWindow::frmVideoWindow(QWidget *parent) : QWidget(parent), ui(new Ui::frmVideoWindow)
{
ui->setupUi(this);
this->initForm();
}
frmVideoWindow::~frmVideoWindow()
{
delete ui;
}
void frmVideoWindow::initForm()
{
ui->videoWindow1->setFlowEnable(true);
ui->videoWindow2->setFlowEnable(true);
ui->videoWindow3->setFlowEnable(true);
ui->videoWindow4->setFlowEnable(true);
connect(ui->videoWindow1, SIGNAL(btnClicked(QString)), this, SLOT(btnClicked(QString)));
connect(ui->videoWindow2, SIGNAL(btnClicked(QString)), this, SLOT(btnClicked(QString)));
connect(ui->videoWindow3, SIGNAL(btnClicked(QString)), this, SLOT(btnClicked(QString)));
connect(ui->videoWindow4, SIGNAL(btnClicked(QString)), this, SLOT(btnClicked(QString)));
}
void frmVideoWindow::btnClicked(const QString &objName)
{
VideoWindow *videoWindow = (VideoWindow *)sender();
QString str = QString("当前单击了控件 %1 的按钮 %2").arg(videoWindow->objectName()).arg(objName);
ui->label->setText(str);
}