1.更新MDNS广播的服务类型命名规范,防止出现多设备打开找不到MDNS的广播的问题 2.更新区分前后板的TAG
This commit is contained in:
26
FactoryTestTool/SourceCode/Media/VideoDecoder/FocusWindow.h
Normal file
26
FactoryTestTool/SourceCode/Media/VideoDecoder/FocusWindow.h
Normal file
@@ -0,0 +1,26 @@
|
||||
#include <QDialog>
|
||||
#include <QVBoxLayout>
|
||||
#include <QLabel>
|
||||
#include <QPushButton>
|
||||
|
||||
class FocusWindowDialog : public QDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
FocusWindowDialog(QWidget* parent = nullptr, const QSize& labelSize = QSize(480, 640)) : QDialog(parent)
|
||||
{
|
||||
QVBoxLayout* layout = new QVBoxLayout(this);
|
||||
QLabel* label = new QLabel("1111 This is a new window opened by clicking the new button.", this);
|
||||
label->setFixedSize(labelSize); // 设置QLabel的固定大小
|
||||
layout->addWidget(label);
|
||||
|
||||
QPushButton* closeButton = new QPushButton("Close", this);
|
||||
layout->addWidget(closeButton);
|
||||
connect(closeButton, &QPushButton::clicked, this, &FocusWindowDialog::accept);
|
||||
|
||||
setLayout(layout);
|
||||
setWindowTitle("SL100 视频播放窗口");
|
||||
//resize(500, 700); // 设置对话框的大小
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user