add a home page

This commit is contained in:
XinJiang1 2024-12-28 02:32:18 +08:00
parent fa00a0b3f0
commit 100734144e
10 changed files with 1437 additions and 70 deletions

View File

@ -22,7 +22,7 @@ static MIL_ID MilImage0;
static MIL_ID MilImage_Color0;
static MIL_ID ModifiedBufferId0;
static MIL_ID MilGrabBufferList0[20] = {0};
static MIL_INT BufSizeX0 = 4096;
static MIL_INT BufSizeX0 = 2048;
static MIL_INT BufSizeY0 = 512;
unsigned char* m_AvsBuffer0 = (unsigned char*)malloc(BufSizeX0 * BufSizeY0 * 3);
static int FuncCount0 = 1;
@ -32,7 +32,7 @@ static MIL_ID MilImage1;
static MIL_ID MilImage_Color1;
static MIL_ID ModifiedBufferId1;
static MIL_ID MilGrabBufferList1[20] = {0};
static MIL_INT BufSizeX1 = 4096;
static MIL_INT BufSizeX1 = 2048;
static MIL_INT BufSizeY1 = 512;
unsigned char* m_AvsBuffer1 = (unsigned char*)malloc(BufSizeX1 * BufSizeY1 * 3);
static int FuncCount1 = 1;

View File

@ -23,12 +23,13 @@
/
/
/
/
[CAMERA_NAME]
no name
[CONFIG_FILE]
50CF
ODYSSEY
Thu Dec 26 15:46:40 2024
Fri Dec 27 11:45:15 2024
[INFO_FILE_REV]
0010.0019.0000
RADIENT/eVCL/DUAL
@ -119,9 +120,9 @@ VDT_NOVERT
VDT_HSYNC 0x0
VDT_HBPORCH 0x10
VDT_HFPORCH 0x0
VDT_HACTIVE 0x1000
VDT_HTOTAL 0x1010
VDT_HSYNC_FREQ 0x4bff
VDT_HACTIVE 0x800
VDT_HTOTAL 0x810
VDT_HSYNC_FREQ 0x9767
VDT_VSYNC 0x0
VDT_VBPORCH 0x0
VDT_VFPORCH 0x0
@ -356,7 +357,7 @@ TAP_PIXADJY
CLC_MODE 0x0
CLC_MODE_INIT_WIDTH_10_16 0x0
CLC_ACTIVE_CH0 0x1
VDT_CL_USE_CAMERA_VALID 0x4
VDT_CL_USE_CAMERA_VALID 0x5
CL_MODE_BITMAP 0x6
CLC_MODE_CH0 0x5
CLC_SYNC_SOURCE 0x0
@ -1564,8 +1565,8 @@ DEF_INFO_XSIZE_DIVISOR
DEF_INFO_YSIZE_DIVISOR 0x1
DEF_ADD_HACTIVE_MULTIPLEX 0x0
DEF_ADD_VACTIVE_MULTIPLEX 0x0
DEF_HTOTAL_ENTRY 0x1010
DEF_HACTIVE_ENTRY 0x1000
DEF_HTOTAL_ENTRY 0x810
DEF_HACTIVE_ENTRY 0x800
DEF_VTOTAL_ENTRY 0x200
DEF_VACTIVE_ENTRY 0x200
DEF_CL_NEW_HCROPPING 0x10
@ -1587,7 +1588,7 @@ DEF_ADD_3MAX_TOTAL_HVBLANK_ZERO
DEF_ADD_HTOTAL_EQUA_HEVAL 0x0
DEF_HOR_COUNT_MAX_BITWISE 0xffff
DEF_VERT_COUNT_MAX_BITWISE 0xffff
DEF_DIG_HTOTAL 0x100f
DEF_DIG_HTOTAL 0x80f
DEF_DIG_VTOTAL 0x1ff
DEF_TEST_MODE_HFP_MIN 0x0
DEF_TEST_MODE_HSY_HBP_MIN_CL 0x0
@ -1618,8 +1619,8 @@ DEF_TIMER0_PIPE_DELAY1
DEF_TIMER1_PIPE_DELAY1 0x0
DEF_TMR0_CLKTMR1_CNT 0x0
DEF_TMR1_CLKTMR0_CNT 0x0
DEF_TIMER01_CLK_HS_FREQ 0x4c03
DEF_TIMER01_CLK_HS_PERIOD 0xc8be
DEF_TIMER01_CLK_HS_FREQ 0x977a
DEF_TIMER01_CLK_HS_PERIOD 0x64bc
DEF_TIMER0_CLK_HS_PERIOD_DLY1_CNT 0x0
DEF_TIMER0_CLK_HS_PERIOD_DLY2_CNT 0x0
DEF_TIMER0_CLK_HS_PERIOD_T1_CNT 0x0
@ -1734,7 +1735,7 @@ DEF_DIG1_BYTESORDER
[REG_DIGIT]
INFO_CUSTOM 0x0
INFO_REGISTER_REV 0x1
INFO_XSIZE 0x1000
INFO_XSIZE 0x800
INFO_YSIZE 0x200
INFO_TYPE 0x1
INFO_BAYER 0x0
@ -1928,13 +1929,13 @@ INFO_MASK_T2CTLH
INFO_MASK_T3CTLL 0x0
INFO_MASK_T3CTLH 0x0
DIG_HCNT 0x1
DIG_HTOTAL 0x100f
DIG_HTOTAL 0x80f
DIG_HSCNT 0x0
DIG_HECNT 0x1
DIG_HSSYNC 0x0
DIG_HESYNC 0x0
DIG_HSVAL 0x10
DIG_HEVAL 0x100f
DIG_HEVAL 0x80f
DIG_HSCLM 0x0
DIG_HECLM 0x0
DIG_HCTL 0x1e0
@ -1971,7 +1972,7 @@ DIG_PULMCTL
DIG_PULMCTL_HIGH 0x0
DIG_CLKCTL 0x0
DIG_GRBCTL 0x5
DIG_VALCTL 0x23138950
DIG_VALCTL 0x23138850
DIG_FLDCTL 0x2
DIG_SYNCOUT 0x88
DIG_TRGIN 0x0
@ -2354,5 +2355,5 @@ DIG_IOCTL1H
DIG_IOCTL0_L not_modified
DIG_ENCTL not_modified
[EOF]
00007FF65B44AAA8 0x400ce
00007FF65B44AA90 0xb579adfb
00007FF77F63AAA8 0x400c9
00007FF77F63AA90 0x6b1a737f

View File

@ -21,12 +21,13 @@
/
/
/
/
[CAMERA_NAME]
no name
[CONFIG_FILE]
50CF
ODYSSEY
Thu Dec 26 15:47:03 2024
Fri Dec 27 11:45:33 2024
[INFO_FILE_REV]
0010.0019.0000
RADIENT/eVCL/DUAL
@ -117,9 +118,9 @@ VDT_NOVERT
VDT_HSYNC 0x0
VDT_HBPORCH 0x10
VDT_HFPORCH 0x0
VDT_HACTIVE 0x1000
VDT_HTOTAL 0x1010
VDT_HSYNC_FREQ 0x4bff
VDT_HACTIVE 0x800
VDT_HTOTAL 0x810
VDT_HSYNC_FREQ 0x9767
VDT_VSYNC 0x0
VDT_VBPORCH 0x0
VDT_VFPORCH 0x0
@ -354,7 +355,7 @@ TAP_PIXADJY
CLC_MODE 0x0
CLC_MODE_INIT_WIDTH_10_16 0x0
CLC_ACTIVE_CH0 0x1
VDT_CL_USE_CAMERA_VALID 0x4
VDT_CL_USE_CAMERA_VALID 0x5
CL_MODE_BITMAP 0x6
CLC_MODE_CH0 0x5
CLC_SYNC_SOURCE 0x0
@ -1562,8 +1563,8 @@ DEF_INFO_XSIZE_DIVISOR
DEF_INFO_YSIZE_DIVISOR 0x1
DEF_ADD_HACTIVE_MULTIPLEX 0x0
DEF_ADD_VACTIVE_MULTIPLEX 0x0
DEF_HTOTAL_ENTRY 0x1010
DEF_HACTIVE_ENTRY 0x1000
DEF_HTOTAL_ENTRY 0x810
DEF_HACTIVE_ENTRY 0x800
DEF_VTOTAL_ENTRY 0x200
DEF_VACTIVE_ENTRY 0x200
DEF_CL_NEW_HCROPPING 0x10
@ -1585,7 +1586,7 @@ DEF_ADD_3MAX_TOTAL_HVBLANK_ZERO
DEF_ADD_HTOTAL_EQUA_HEVAL 0x0
DEF_HOR_COUNT_MAX_BITWISE 0xffff
DEF_VERT_COUNT_MAX_BITWISE 0xffff
DEF_DIG_HTOTAL 0x100f
DEF_DIG_HTOTAL 0x80f
DEF_DIG_VTOTAL 0x1ff
DEF_TEST_MODE_HFP_MIN 0x0
DEF_TEST_MODE_HSY_HBP_MIN_CL 0x0
@ -1616,8 +1617,8 @@ DEF_TIMER0_PIPE_DELAY1
DEF_TIMER1_PIPE_DELAY1 0x0
DEF_TMR0_CLKTMR1_CNT 0x0
DEF_TMR1_CLKTMR0_CNT 0x0
DEF_TIMER01_CLK_HS_FREQ 0x4c03
DEF_TIMER01_CLK_HS_PERIOD 0xc8be
DEF_TIMER01_CLK_HS_FREQ 0x977a
DEF_TIMER01_CLK_HS_PERIOD 0x64bc
DEF_TIMER0_CLK_HS_PERIOD_DLY1_CNT 0x0
DEF_TIMER0_CLK_HS_PERIOD_DLY2_CNT 0x0
DEF_TIMER0_CLK_HS_PERIOD_T1_CNT 0x0
@ -1732,7 +1733,7 @@ DEF_DIG1_BYTESORDER
[REG_DIGIT]
INFO_CUSTOM 0x0
INFO_REGISTER_REV 0x1
INFO_XSIZE 0x1000
INFO_XSIZE 0x800
INFO_YSIZE 0x200
INFO_TYPE 0x1
INFO_BAYER 0x0
@ -1926,13 +1927,13 @@ INFO_MASK_T2CTLH
INFO_MASK_T3CTLL 0x0
INFO_MASK_T3CTLH 0x0
DIG_HCNT 0x1
DIG_HTOTAL 0x100f
DIG_HTOTAL 0x80f
DIG_HSCNT 0x0
DIG_HECNT 0x1
DIG_HSSYNC 0x0
DIG_HESYNC 0x0
DIG_HSVAL 0x10
DIG_HEVAL 0x100f
DIG_HEVAL 0x80f
DIG_HSCLM 0x0
DIG_HECLM 0x0
DIG_HCTL 0x1e0
@ -1969,7 +1970,7 @@ DIG_PULMCTL
DIG_PULMCTL_HIGH 0x0
DIG_CLKCTL 0x0
DIG_GRBCTL 0x5
DIG_VALCTL 0x23138950
DIG_VALCTL 0x23138850
DIG_FLDCTL 0x2
DIG_SYNCOUT 0x88
DIG_TRGIN 0x0
@ -2352,5 +2353,5 @@ DIG_IOCTL1H
DIG_IOCTL0_L not_modified
DIG_ENCTL not_modified
[EOF]
00007FF65B44AAA8 0x400c8
00007FF65B44AA90 0x11cf9d48
00007FF77F63AAA8 0x400c3
00007FF77F63AA90 0x38bce028

View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE QtCreatorProject>
<!-- Written by QtCreator 15.0.0, 2024-12-26T20:39:49. -->
<!-- Written by QtCreator 15.0.0, 2024-12-28T00:29:22. -->
<qtcreator>
<data>
<variable>EnvironmentId</variable>

View File

@ -23,12 +23,13 @@
/
/
/
/
[CAMERA_NAME]
no name
[CONFIG_FILE]
50CF
ODYSSEY
Thu Dec 26 16:28:39 2024
Fri Dec 27 11:45:15 2024
[INFO_FILE_REV]
0010.0019.0000
RADIENT/eVCL/DUAL
@ -119,9 +120,9 @@ VDT_NOVERT
VDT_HSYNC 0x0
VDT_HBPORCH 0x10
VDT_HFPORCH 0x0
VDT_HACTIVE 0x1000
VDT_HTOTAL 0x1010
VDT_HSYNC_FREQ 0x4bff
VDT_HACTIVE 0x800
VDT_HTOTAL 0x810
VDT_HSYNC_FREQ 0x9767
VDT_VSYNC 0x0
VDT_VBPORCH 0x0
VDT_VFPORCH 0x0
@ -356,7 +357,7 @@ TAP_PIXADJY
CLC_MODE 0x0
CLC_MODE_INIT_WIDTH_10_16 0x0
CLC_ACTIVE_CH0 0x1
VDT_CL_USE_CAMERA_VALID 0x4
VDT_CL_USE_CAMERA_VALID 0x5
CL_MODE_BITMAP 0x6
CLC_MODE_CH0 0x5
CLC_SYNC_SOURCE 0x0
@ -1564,8 +1565,8 @@ DEF_INFO_XSIZE_DIVISOR
DEF_INFO_YSIZE_DIVISOR 0x1
DEF_ADD_HACTIVE_MULTIPLEX 0x0
DEF_ADD_VACTIVE_MULTIPLEX 0x0
DEF_HTOTAL_ENTRY 0x1010
DEF_HACTIVE_ENTRY 0x1000
DEF_HTOTAL_ENTRY 0x810
DEF_HACTIVE_ENTRY 0x800
DEF_VTOTAL_ENTRY 0x200
DEF_VACTIVE_ENTRY 0x200
DEF_CL_NEW_HCROPPING 0x10
@ -1587,7 +1588,7 @@ DEF_ADD_3MAX_TOTAL_HVBLANK_ZERO
DEF_ADD_HTOTAL_EQUA_HEVAL 0x0
DEF_HOR_COUNT_MAX_BITWISE 0xffff
DEF_VERT_COUNT_MAX_BITWISE 0xffff
DEF_DIG_HTOTAL 0x100f
DEF_DIG_HTOTAL 0x80f
DEF_DIG_VTOTAL 0x1ff
DEF_TEST_MODE_HFP_MIN 0x0
DEF_TEST_MODE_HSY_HBP_MIN_CL 0x0
@ -1618,8 +1619,8 @@ DEF_TIMER0_PIPE_DELAY1
DEF_TIMER1_PIPE_DELAY1 0x0
DEF_TMR0_CLKTMR1_CNT 0x0
DEF_TMR1_CLKTMR0_CNT 0x0
DEF_TIMER01_CLK_HS_FREQ 0x4c03
DEF_TIMER01_CLK_HS_PERIOD 0xc8be
DEF_TIMER01_CLK_HS_FREQ 0x977a
DEF_TIMER01_CLK_HS_PERIOD 0x64bc
DEF_TIMER0_CLK_HS_PERIOD_DLY1_CNT 0x0
DEF_TIMER0_CLK_HS_PERIOD_DLY2_CNT 0x0
DEF_TIMER0_CLK_HS_PERIOD_T1_CNT 0x0
@ -1734,7 +1735,7 @@ DEF_DIG1_BYTESORDER
[REG_DIGIT]
INFO_CUSTOM 0x0
INFO_REGISTER_REV 0x1
INFO_XSIZE 0x1000
INFO_XSIZE 0x800
INFO_YSIZE 0x200
INFO_TYPE 0x1
INFO_BAYER 0x0
@ -1928,13 +1929,13 @@ INFO_MASK_T2CTLH
INFO_MASK_T3CTLL 0x0
INFO_MASK_T3CTLH 0x0
DIG_HCNT 0x1
DIG_HTOTAL 0x100f
DIG_HTOTAL 0x80f
DIG_HSCNT 0x0
DIG_HECNT 0x1
DIG_HSSYNC 0x0
DIG_HESYNC 0x0
DIG_HSVAL 0x10
DIG_HEVAL 0x100f
DIG_HEVAL 0x80f
DIG_HSCLM 0x0
DIG_HECLM 0x0
DIG_HCTL 0x1e0
@ -1971,7 +1972,7 @@ DIG_PULMCTL
DIG_PULMCTL_HIGH 0x0
DIG_CLKCTL 0x0
DIG_GRBCTL 0x5
DIG_VALCTL 0x23138950
DIG_VALCTL 0x23138850
DIG_FLDCTL 0x2
DIG_SYNCOUT 0x88
DIG_TRGIN 0x0
@ -2354,5 +2355,5 @@ DIG_IOCTL1H
DIG_IOCTL0_L not_modified
DIG_ENCTL not_modified
[EOF]
00007FF65B44AAA8 0x400ce
00007FF65B44AA90 0xa5046900
00007FF77F63AAA8 0x400c9
00007FF77F63AA90 0x6b1a737f

View File

@ -21,12 +21,13 @@
/
/
/
/
[CAMERA_NAME]
no name
[CONFIG_FILE]
50CF
ODYSSEY
Thu Dec 26 16:28:58 2024
Fri Dec 27 11:45:33 2024
[INFO_FILE_REV]
0010.0019.0000
RADIENT/eVCL/DUAL
@ -117,9 +118,9 @@ VDT_NOVERT
VDT_HSYNC 0x0
VDT_HBPORCH 0x10
VDT_HFPORCH 0x0
VDT_HACTIVE 0x1000
VDT_HTOTAL 0x1010
VDT_HSYNC_FREQ 0x4bff
VDT_HACTIVE 0x800
VDT_HTOTAL 0x810
VDT_HSYNC_FREQ 0x9767
VDT_VSYNC 0x0
VDT_VBPORCH 0x0
VDT_VFPORCH 0x0
@ -354,7 +355,7 @@ TAP_PIXADJY
CLC_MODE 0x0
CLC_MODE_INIT_WIDTH_10_16 0x0
CLC_ACTIVE_CH0 0x1
VDT_CL_USE_CAMERA_VALID 0x4
VDT_CL_USE_CAMERA_VALID 0x5
CL_MODE_BITMAP 0x6
CLC_MODE_CH0 0x5
CLC_SYNC_SOURCE 0x0
@ -1562,8 +1563,8 @@ DEF_INFO_XSIZE_DIVISOR
DEF_INFO_YSIZE_DIVISOR 0x1
DEF_ADD_HACTIVE_MULTIPLEX 0x0
DEF_ADD_VACTIVE_MULTIPLEX 0x0
DEF_HTOTAL_ENTRY 0x1010
DEF_HACTIVE_ENTRY 0x1000
DEF_HTOTAL_ENTRY 0x810
DEF_HACTIVE_ENTRY 0x800
DEF_VTOTAL_ENTRY 0x200
DEF_VACTIVE_ENTRY 0x200
DEF_CL_NEW_HCROPPING 0x10
@ -1585,7 +1586,7 @@ DEF_ADD_3MAX_TOTAL_HVBLANK_ZERO
DEF_ADD_HTOTAL_EQUA_HEVAL 0x0
DEF_HOR_COUNT_MAX_BITWISE 0xffff
DEF_VERT_COUNT_MAX_BITWISE 0xffff
DEF_DIG_HTOTAL 0x100f
DEF_DIG_HTOTAL 0x80f
DEF_DIG_VTOTAL 0x1ff
DEF_TEST_MODE_HFP_MIN 0x0
DEF_TEST_MODE_HSY_HBP_MIN_CL 0x0
@ -1616,8 +1617,8 @@ DEF_TIMER0_PIPE_DELAY1
DEF_TIMER1_PIPE_DELAY1 0x0
DEF_TMR0_CLKTMR1_CNT 0x0
DEF_TMR1_CLKTMR0_CNT 0x0
DEF_TIMER01_CLK_HS_FREQ 0x4c03
DEF_TIMER01_CLK_HS_PERIOD 0xc8be
DEF_TIMER01_CLK_HS_FREQ 0x977a
DEF_TIMER01_CLK_HS_PERIOD 0x64bc
DEF_TIMER0_CLK_HS_PERIOD_DLY1_CNT 0x0
DEF_TIMER0_CLK_HS_PERIOD_DLY2_CNT 0x0
DEF_TIMER0_CLK_HS_PERIOD_T1_CNT 0x0
@ -1732,7 +1733,7 @@ DEF_DIG1_BYTESORDER
[REG_DIGIT]
INFO_CUSTOM 0x0
INFO_REGISTER_REV 0x1
INFO_XSIZE 0x1000
INFO_XSIZE 0x800
INFO_YSIZE 0x200
INFO_TYPE 0x1
INFO_BAYER 0x0
@ -1926,13 +1927,13 @@ INFO_MASK_T2CTLH
INFO_MASK_T3CTLL 0x0
INFO_MASK_T3CTLH 0x0
DIG_HCNT 0x1
DIG_HTOTAL 0x100f
DIG_HTOTAL 0x80f
DIG_HSCNT 0x0
DIG_HECNT 0x1
DIG_HSSYNC 0x0
DIG_HESYNC 0x0
DIG_HSVAL 0x10
DIG_HEVAL 0x100f
DIG_HEVAL 0x80f
DIG_HSCLM 0x0
DIG_HECLM 0x0
DIG_HCTL 0x1e0
@ -1969,7 +1970,7 @@ DIG_PULMCTL
DIG_PULMCTL_HIGH 0x0
DIG_CLKCTL 0x0
DIG_GRBCTL 0x5
DIG_VALCTL 0x23138950
DIG_VALCTL 0x23138850
DIG_FLDCTL 0x2
DIG_SYNCOUT 0x88
DIG_TRGIN 0x0
@ -2352,5 +2353,5 @@ DIG_IOCTL1H
DIG_IOCTL0_L not_modified
DIG_ENCTL not_modified
[EOF]
00007FF65B44AAA8 0x400c8
00007FF65B44AA90 0x6c01ddfa
00007FF77F63AAA8 0x400c3
00007FF77F63AA90 0x38bce028

View File

@ -16,6 +16,7 @@
#include <QtWidgets/QGroupBox>
#include <QtWidgets/QHBoxLayout>
#include <QtWidgets/QLabel>
#include <QtWidgets/QProgressBar>
#include <QtWidgets/QPushButton>
#include <QtWidgets/QSpacerItem>
#include <QtWidgets/QSpinBox>
@ -90,7 +91,65 @@ public:
QGroupBox *groupBox_3;
QPushButton *btn_test_single;
QPushButton *btn_stop_test;
QPushButton *btn_tab3_backtab2_2;
QWidget *tab_4;
QVBoxLayout *verticalLayout_8;
QFrame *frame_4;
QHBoxLayout *horizontalLayout_2;
QLabel *label_5;
QSpacerItem *horizontalSpacer_3;
QLabel *label_6;
QSpacerItem *horizontalSpacer_4;
QPushButton *btn_settings;
QPushButton *btn_live;
QFrame *frame_5;
QHBoxLayout *horizontalLayout_16;
QFrame *frame_running_time;
QVBoxLayout *verticalLayout_2;
QHBoxLayout *horizontalLayout_7;
QLabel *label_7;
QSpacerItem *horizontalSpacer_5;
QSpacerItem *verticalSpacer_3;
QHBoxLayout *horizontalLayout_8;
QLabel *label_10;
QLabel *label_8;
QLabel *label_11;
QLabel *label_9;
QSpacerItem *verticalSpacer_2;
QHBoxLayout *horizontalLayout_9;
QLabel *label_12;
QSpacerItem *horizontalSpacer_6;
QProgressBar *progressBar;
QFrame *frame_valve;
QVBoxLayout *verticalLayout_6;
QHBoxLayout *horizontalLayout_10;
QLabel *label_13;
QSpacerItem *horizontalSpacer_7;
QSpacerItem *verticalSpacer_4;
QHBoxLayout *horizontalLayout_11;
QLabel *label_16;
QLabel *label_17;
QSpacerItem *verticalSpacer_5;
QHBoxLayout *horizontalLayout_17;
QLabel *label_19;
QSpacerItem *horizontalSpacer_10;
QHBoxLayout *horizontalLayout_12;
QLabel *label_18;
QSpacerItem *horizontalSpacer_8;
QFrame *frame_history;
QVBoxLayout *verticalLayout_7;
QHBoxLayout *horizontalLayout_13;
QLabel *label_14;
QSpacerItem *horizontalSpacer_9;
QHBoxLayout *horizontalLayout_14;
QSpacerItem *verticalSpacer_7;
QHBoxLayout *horizontalLayout_15;
QFrame *frame_8;
QHBoxLayout *horizontalLayout_18;
QSpacerItem *horizontalSpacer_11;
QLabel *label_20;
QLabel *label_21;
QSpacerItem *horizontalSpacer_12;
void setupUi(QWidget *Widget)
{
@ -588,9 +647,485 @@ public:
btn_stop_test = new QPushButton(groupBox_3);
btn_stop_test->setObjectName("btn_stop_test");
btn_stop_test->setGeometry(QRect(210, 40, 75, 23));
btn_tab3_backtab2_2 = new QPushButton(tab_3);
btn_tab3_backtab2_2->setObjectName("btn_tab3_backtab2_2");
btn_tab3_backtab2_2->setGeometry(QRect(510, 770, 231, 141));
tabWidget->addTab(tab_3, QString());
tab_4 = new QWidget();
tab_4->setObjectName("tab_4");
tab_4->setStyleSheet(QString::fromUtf8("background-color: rgb(26, 26, 26);"));
verticalLayout_8 = new QVBoxLayout(tab_4);
verticalLayout_8->setObjectName("verticalLayout_8");
verticalLayout_8->setContentsMargins(0, -1, 0, -1);
frame_4 = new QFrame(tab_4);
frame_4->setObjectName("frame_4");
frame_4->setFrameShape(QFrame::Shape::StyledPanel);
frame_4->setFrameShadow(QFrame::Shadow::Raised);
horizontalLayout_2 = new QHBoxLayout(frame_4);
horizontalLayout_2->setObjectName("horizontalLayout_2");
label_5 = new QLabel(frame_4);
label_5->setObjectName("label_5");
label_5->setStyleSheet(QString::fromUtf8("font: 700 30pt \"Microsoft YaHei UI\";\n"
"color: rgb(255, 255, 255)"));
horizontalLayout_2->addWidget(label_5);
horizontalSpacer_3 = new QSpacerItem(672, 20, QSizePolicy::Policy::Expanding, QSizePolicy::Policy::Minimum);
horizontalLayout_2->addItem(horizontalSpacer_3);
label_6 = new QLabel(frame_4);
label_6->setObjectName("label_6");
label_6->setStyleSheet(QString::fromUtf8("font: 14pt \"Microsoft YaHei UI\";\n"
"color: rgb(170, 170, 170)"));
horizontalLayout_2->addWidget(label_6);
horizontalSpacer_4 = new QSpacerItem(672, 20, QSizePolicy::Policy::Expanding, QSizePolicy::Policy::Minimum);
horizontalLayout_2->addItem(horizontalSpacer_4);
btn_settings = new QPushButton(frame_4);
btn_settings->setObjectName("btn_settings");
QSizePolicy sizePolicy2(QSizePolicy::Policy::Preferred, QSizePolicy::Policy::Preferred);
sizePolicy2.setHorizontalStretch(0);
sizePolicy2.setVerticalStretch(0);
sizePolicy2.setHeightForWidth(btn_settings->sizePolicy().hasHeightForWidth());
btn_settings->setSizePolicy(sizePolicy2);
btn_settings->setMinimumSize(QSize(0, 0));
btn_settings->setStyleSheet(QString::fromUtf8("/* btn_start \346\240\267\345\274\217 */\n"
"QPushButton#btn_settings {\n"
" background-color: rgb(52,52,52); /* \346\232\227\347\273\277\350\211\262\350\203\214\346\231\257 */\n"
" color: #ffffff; /* \347\231\275\350\211\262\346\226\207\345\255\227 */\n"
" border-radius: 12px; /* \345\234\206\350\247\222\345\215\212\345\276\204 */\n"
" font-size: 24px; /* \345\255\227\344\275\223\345\244\247\345\260\217 */\n"
" font-weight: bold; /* \347\262\227\344\275\223\345\255\227 */\n"
" padding: 10px 20px; /* \345\206\205\350\276\271\350\267\235 */\n"
"\n"
"}\n"
"\n"
"QPushButton#btn_settings:hover {\n"
" background-color: #28b45d; /* \347\250\215\344\272\256\347\232\204\346\232\227\347\273\277\350\211\262\350\203\214\346\231\257 */\n"
" border: 2px solid #1f8a4d; /* \346\232\227\347\273\277\350\211\262\350\276\271\346\241\206 */\n"
"}\n"
"\n"
"QPushButton#btn_settings:pressed {\n"
" background-color: #186a3b; /* \346\233\264\346\267\261\347\232\204\347"
"\273\277\350\211\262\350\203\214\346\231\257 */\n"
" color: #BDC3C7; /* \347\201\260\350\211\262\346\226\207\345\255\227 */\n"
" border: 2px solid #134d33; /* \346\233\264\346\267\261\347\232\204\347\273\277\350\211\262\350\276\271\346\241\206 */\n"
"}\n"
"\n"
"QPushButton#btn_start:disabled {\n"
" background-color: #7F8C8D; /* \347\201\260\350\211\262\350\203\214\346\231\257 */\n"
" color: #BDC3C7; /* \347\201\260\350\211\262\346\226\207\345\255\227 */\n"
" border: 2px solid #7F8C8D; /* \347\201\260\350\211\262\350\276\271\346\241\206 */\n"
"}"));
horizontalLayout_2->addWidget(btn_settings);
btn_live = new QPushButton(frame_4);
btn_live->setObjectName("btn_live");
sizePolicy2.setHeightForWidth(btn_live->sizePolicy().hasHeightForWidth());
btn_live->setSizePolicy(sizePolicy2);
btn_live->setMinimumSize(QSize(0, 0));
btn_live->setStyleSheet(QString::fromUtf8("/* btn_start \346\240\267\345\274\217 */\n"
"QPushButton#btn_live {\n"
" background-color: rgb(52,52,52); /* \346\232\227\347\273\277\350\211\262\350\203\214\346\231\257 */\n"
" color: #ffffff; /* \347\231\275\350\211\262\346\226\207\345\255\227 */\n"
" border-radius: 12px; /* \345\234\206\350\247\222\345\215\212\345\276\204 */\n"
" font-size: 24px; /* \345\255\227\344\275\223\345\244\247\345\260\217 */\n"
" font-weight: bold; /* \347\262\227\344\275\223\345\255\227 */\n"
" padding: 10px 20px; /* \345\206\205\350\276\271\350\267\235 */\n"
"}\n"
"\n"
"QPushButton#btn_live:hover {\n"
" background-color: #28b45d; /* \347\250\215\344\272\256\347\232\204\346\232\227\347\273\277\350\211\262\350\203\214\346\231\257 */\n"
" border: 2px solid #1f8a4d; /* \346\232\227\347\273\277\350\211\262\350\276\271\346\241\206 */\n"
"}\n"
"\n"
"QPushButton#btn_live:pressed {\n"
" background-color: #186a3b; /* \346\233\264\346\267\261\347\232\204\347\273\277\350\211"
"\262\350\203\214\346\231\257 */\n"
" color: #BDC3C7; /* \347\201\260\350\211\262\346\226\207\345\255\227 */\n"
" border: 2px solid #134d33; /* \346\233\264\346\267\261\347\232\204\347\273\277\350\211\262\350\276\271\346\241\206 */\n"
"}\n"
"\n"
"QPushButton#btn_start:disabled {\n"
" background-color: #7F8C8D; /* \347\201\260\350\211\262\350\203\214\346\231\257 */\n"
" color: #BDC3C7; /* \347\201\260\350\211\262\346\226\207\345\255\227 */\n"
" border: 2px solid #7F8C8D; /* \347\201\260\350\211\262\350\276\271\346\241\206 */\n"
"}"));
horizontalLayout_2->addWidget(btn_live);
verticalLayout_8->addWidget(frame_4);
frame_5 = new QFrame(tab_4);
frame_5->setObjectName("frame_5");
frame_5->setStyleSheet(QString::fromUtf8("QFrame#frame_5{\n"
"border:2px solid rgb(70,70,70);\n"
"font-family: Arial, sans-serif;\n"
" background: qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1, stop:0 #2d2d2d, stop:1 #1a1a1a);\n"
" color: #ffffff;}"));
frame_5->setFrameShape(QFrame::Shape::StyledPanel);
frame_5->setFrameShadow(QFrame::Shadow::Raised);
horizontalLayout_16 = new QHBoxLayout(frame_5);
horizontalLayout_16->setSpacing(24);
horizontalLayout_16->setObjectName("horizontalLayout_16");
horizontalLayout_16->setContentsMargins(38, 20, 38, 20);
frame_running_time = new QFrame(frame_5);
frame_running_time->setObjectName("frame_running_time");
QSizePolicy sizePolicy3(QSizePolicy::Policy::Minimum, QSizePolicy::Policy::Expanding);
sizePolicy3.setHorizontalStretch(0);
sizePolicy3.setVerticalStretch(0);
sizePolicy3.setHeightForWidth(frame_running_time->sizePolicy().hasHeightForWidth());
frame_running_time->setSizePolicy(sizePolicy3);
frame_running_time->setMinimumSize(QSize(346, 0));
frame_running_time->setMaximumSize(QSize(16777215, 16777215));
frame_running_time->setStyleSheet(QString::fromUtf8("QFrame#frame_running_time{\n"
"background: #2d2d2d;\n"
"border: 3px solid #444;\n"
"border-radius: 12px;\n"
"padding: 20px;\n"
"min-width: 300px;\n"
"box-shadow: 0px 8px 12px rgba(0, 0, 0, 0.5);}"));
frame_running_time->setFrameShape(QFrame::Shape::StyledPanel);
frame_running_time->setFrameShadow(QFrame::Shadow::Raised);
verticalLayout_2 = new QVBoxLayout(frame_running_time);
verticalLayout_2->setObjectName("verticalLayout_2");
horizontalLayout_7 = new QHBoxLayout();
horizontalLayout_7->setObjectName("horizontalLayout_7");
label_7 = new QLabel(frame_running_time);
label_7->setObjectName("label_7");
label_7->setStyleSheet(QString::fromUtf8("font: 700 26pt \"Microsoft YaHei UI\";\n"
"color:rgb(223,223,223);\n"
"background-color: #2d2d2d;;\n"
""));
horizontalLayout_7->addWidget(label_7);
horizontalSpacer_5 = new QSpacerItem(40, 20, QSizePolicy::Policy::Expanding, QSizePolicy::Policy::Minimum);
horizontalLayout_7->addItem(horizontalSpacer_5);
verticalLayout_2->addLayout(horizontalLayout_7);
verticalSpacer_3 = new QSpacerItem(20, 357, QSizePolicy::Policy::Minimum, QSizePolicy::Policy::Expanding);
verticalLayout_2->addItem(verticalSpacer_3);
horizontalLayout_8 = new QHBoxLayout();
horizontalLayout_8->setObjectName("horizontalLayout_8");
horizontalLayout_8->setSizeConstraint(QLayout::SizeConstraint::SetMinimumSize);
label_10 = new QLabel(frame_running_time);
label_10->setObjectName("label_10");
label_10->setStyleSheet(QString::fromUtf8("font: 700 32pt \"Microsoft YaHei UI\";\n"
"color:rgb(105,186,210);\n"
"background-color: #2d2d2d;;\n"
""));
horizontalLayout_8->addWidget(label_10);
label_8 = new QLabel(frame_running_time);
label_8->setObjectName("label_8");
QSizePolicy sizePolicy4(QSizePolicy::Policy::Minimum, QSizePolicy::Policy::Minimum);
sizePolicy4.setHorizontalStretch(0);
sizePolicy4.setVerticalStretch(0);
sizePolicy4.setHeightForWidth(label_8->sizePolicy().hasHeightForWidth());
label_8->setSizePolicy(sizePolicy4);
label_8->setStyleSheet(QString::fromUtf8("font: 700 20pt \"Microsoft YaHei UI\";\n"
"color:rgb(105,186,210);\n"
"background-color: #2d2d2d;;\n"
""));
horizontalLayout_8->addWidget(label_8);
label_11 = new QLabel(frame_running_time);
label_11->setObjectName("label_11");
label_11->setStyleSheet(QString::fromUtf8("font: 700 32pt \"Microsoft YaHei UI\";\n"
"color:rgb(105,186,210);\n"
"background-color: #2d2d2d;;\n"
""));
horizontalLayout_8->addWidget(label_11);
label_9 = new QLabel(frame_running_time);
label_9->setObjectName("label_9");
sizePolicy4.setHeightForWidth(label_9->sizePolicy().hasHeightForWidth());
label_9->setSizePolicy(sizePolicy4);
label_9->setStyleSheet(QString::fromUtf8("font: 700 20pt \"Microsoft YaHei UI\";\n"
"color:rgb(105,186,210);\n"
"background-color: #2d2d2d;;\n"
""));
horizontalLayout_8->addWidget(label_9);
verticalLayout_2->addLayout(horizontalLayout_8);
verticalSpacer_2 = new QSpacerItem(20, 357, QSizePolicy::Policy::Minimum, QSizePolicy::Policy::Expanding);
verticalLayout_2->addItem(verticalSpacer_2);
horizontalLayout_9 = new QHBoxLayout();
horizontalLayout_9->setObjectName("horizontalLayout_9");
label_12 = new QLabel(frame_running_time);
label_12->setObjectName("label_12");
label_12->setStyleSheet(QString::fromUtf8("font: 700 14pt \"Microsoft YaHei UI\";\n"
"color:rgb(169,169,169);\n"
"background-color: #2d2d2d;;\n"
""));
horizontalLayout_9->addWidget(label_12);
horizontalSpacer_6 = new QSpacerItem(40, 20, QSizePolicy::Policy::Expanding, QSizePolicy::Policy::Minimum);
horizontalLayout_9->addItem(horizontalSpacer_6);
verticalLayout_2->addLayout(horizontalLayout_9);
progressBar = new QProgressBar(frame_running_time);
progressBar->setObjectName("progressBar");
QSizePolicy sizePolicy5(QSizePolicy::Policy::Minimum, QSizePolicy::Policy::Fixed);
sizePolicy5.setHorizontalStretch(0);
sizePolicy5.setVerticalStretch(0);
sizePolicy5.setHeightForWidth(progressBar->sizePolicy().hasHeightForWidth());
progressBar->setSizePolicy(sizePolicy5);
progressBar->setStyleSheet(QString::fromUtf8("/* \350\277\233\345\272\246\346\235\241\346\240\267\345\274\217 */\n"
"QProgressBar {\n"
" background: #444;\n"
" border: none;\n"
" height: 24px;\n"
" border-radius: 4px;\n"
"}\n"
"\n"
"QProgressBar::chunk {\n"
" background: #00bcd4;\n"
" width: 70%; /* \346\250\241\346\213\237\350\277\233\345\272\246 */\n"
"}\n"
"\n"
"/* \347\212\266\346\200\201\346\240\217\346\240\267\345\274\217 */\n"
"QStatusBar {\n"
" background: #1a1a1a;\n"
" padding: 10px 20px;\n"
" border-top: 1px solid #444;\n"
" color: #fff;\n"
"}\n"
"\n"
"QLabel#status-text {\n"
" color: #00ff00;\n"
" font-weight: bold;\n"
"}"));
progressBar->setValue(24);
verticalLayout_2->addWidget(progressBar);
horizontalLayout_16->addWidget(frame_running_time);
frame_valve = new QFrame(frame_5);
frame_valve->setObjectName("frame_valve");
sizePolicy3.setHeightForWidth(frame_valve->sizePolicy().hasHeightForWidth());
frame_valve->setSizePolicy(sizePolicy3);
frame_valve->setMaximumSize(QSize(16777215, 16777215));
frame_valve->setStyleSheet(QString::fromUtf8("QFrame#frame_valve{\n"
"background: #2d2d2d;\n"
"border: 3px solid #444;\n"
"border-radius: 12px;\n"
"padding: 20px;\n"
"min-width: 300px;\n"
"box-shadow: 0px 8px 12px rgba(0, 0, 0, 0.5);}"));
frame_valve->setFrameShape(QFrame::Shape::StyledPanel);
frame_valve->setFrameShadow(QFrame::Shadow::Raised);
verticalLayout_6 = new QVBoxLayout(frame_valve);
verticalLayout_6->setObjectName("verticalLayout_6");
horizontalLayout_10 = new QHBoxLayout();
horizontalLayout_10->setObjectName("horizontalLayout_10");
label_13 = new QLabel(frame_valve);
label_13->setObjectName("label_13");
label_13->setStyleSheet(QString::fromUtf8("font: 700 26pt \"Microsoft YaHei UI\";\n"
"color:rgb(223,223,223);\n"
"background-color: #2d2d2d;;\n"
""));
horizontalLayout_10->addWidget(label_13);
horizontalSpacer_7 = new QSpacerItem(40, 20, QSizePolicy::Policy::Expanding, QSizePolicy::Policy::Minimum);
horizontalLayout_10->addItem(horizontalSpacer_7);
verticalLayout_6->addLayout(horizontalLayout_10);
verticalSpacer_4 = new QSpacerItem(20, 163, QSizePolicy::Policy::Minimum, QSizePolicy::Policy::Expanding);
verticalLayout_6->addItem(verticalSpacer_4);
horizontalLayout_11 = new QHBoxLayout();
horizontalLayout_11->setObjectName("horizontalLayout_11");
label_16 = new QLabel(frame_valve);
label_16->setObjectName("label_16");
label_16->setStyleSheet(QString::fromUtf8("font: 700 32pt \"Microsoft YaHei UI\";\n"
"color:rgb(105,186,210);\n"
"background-color: #2d2d2d;;\n"
""));
label_16->setAlignment(Qt::AlignmentFlag::AlignRight|Qt::AlignmentFlag::AlignTrailing|Qt::AlignmentFlag::AlignVCenter);
horizontalLayout_11->addWidget(label_16);
label_17 = new QLabel(frame_valve);
label_17->setObjectName("label_17");
sizePolicy4.setHeightForWidth(label_17->sizePolicy().hasHeightForWidth());
label_17->setSizePolicy(sizePolicy4);
label_17->setStyleSheet(QString::fromUtf8("font: 700 20pt \"Microsoft YaHei UI\";\n"
"color:rgb(105,186,210);\n"
"background-color: #2d2d2d;;\n"
""));
horizontalLayout_11->addWidget(label_17);
verticalLayout_6->addLayout(horizontalLayout_11);
verticalSpacer_5 = new QSpacerItem(20, 163, QSizePolicy::Policy::Minimum, QSizePolicy::Policy::Expanding);
verticalLayout_6->addItem(verticalSpacer_5);
horizontalLayout_17 = new QHBoxLayout();
horizontalLayout_17->setObjectName("horizontalLayout_17");
label_19 = new QLabel(frame_valve);
label_19->setObjectName("label_19");
label_19->setStyleSheet(QString::fromUtf8("font: 700 14pt \"Microsoft YaHei UI\";\n"
"color:rgb(169,169,169);\n"
"background-color: #2d2d2d;;\n"
""));
horizontalLayout_17->addWidget(label_19);
horizontalSpacer_10 = new QSpacerItem(40, 20, QSizePolicy::Policy::Expanding, QSizePolicy::Policy::Minimum);
horizontalLayout_17->addItem(horizontalSpacer_10);
verticalLayout_6->addLayout(horizontalLayout_17);
horizontalLayout_12 = new QHBoxLayout();
horizontalLayout_12->setObjectName("horizontalLayout_12");
label_18 = new QLabel(frame_valve);
label_18->setObjectName("label_18");
label_18->setStyleSheet(QString::fromUtf8("font: 700 16pt \"Microsoft YaHei UI\";\n"
"color:rgb(169,169,169);\n"
"background-color: #2d2d2d;;\n"
""));
horizontalLayout_12->addWidget(label_18);
horizontalSpacer_8 = new QSpacerItem(40, 20, QSizePolicy::Policy::Expanding, QSizePolicy::Policy::Minimum);
horizontalLayout_12->addItem(horizontalSpacer_8);
verticalLayout_6->addLayout(horizontalLayout_12);
horizontalLayout_16->addWidget(frame_valve);
frame_history = new QFrame(frame_5);
frame_history->setObjectName("frame_history");
QSizePolicy sizePolicy6(QSizePolicy::Policy::Expanding, QSizePolicy::Policy::Expanding);
sizePolicy6.setHorizontalStretch(0);
sizePolicy6.setVerticalStretch(0);
sizePolicy6.setHeightForWidth(frame_history->sizePolicy().hasHeightForWidth());
frame_history->setSizePolicy(sizePolicy6);
frame_history->setMaximumSize(QSize(16777215, 16777215));
frame_history->setStyleSheet(QString::fromUtf8("QFrame#frame_history{\n"
"background: #2d2d2d;\n"
"border: 3px solid #444;\n"
"border-radius: 12px;\n"
"padding: 20px;\n"
"min-width: 300px;\n"
"box-shadow: 0px 8px 12px rgba(0, 0, 0, 0.5);}"));
frame_history->setFrameShape(QFrame::Shape::StyledPanel);
frame_history->setFrameShadow(QFrame::Shadow::Raised);
verticalLayout_7 = new QVBoxLayout(frame_history);
verticalLayout_7->setObjectName("verticalLayout_7");
horizontalLayout_13 = new QHBoxLayout();
horizontalLayout_13->setObjectName("horizontalLayout_13");
label_14 = new QLabel(frame_history);
label_14->setObjectName("label_14");
label_14->setStyleSheet(QString::fromUtf8("font: 700 26pt \"Microsoft YaHei UI\";\n"
"color:rgb(223,223,223);\n"
"background-color: #2d2d2d;;\n"
""));
horizontalLayout_13->addWidget(label_14);
horizontalSpacer_9 = new QSpacerItem(40, 20, QSizePolicy::Policy::Expanding, QSizePolicy::Policy::Minimum);
horizontalLayout_13->addItem(horizontalSpacer_9);
verticalLayout_7->addLayout(horizontalLayout_13);
horizontalLayout_14 = new QHBoxLayout();
horizontalLayout_14->setObjectName("horizontalLayout_14");
verticalLayout_7->addLayout(horizontalLayout_14);
verticalSpacer_7 = new QSpacerItem(20, 163, QSizePolicy::Policy::Minimum, QSizePolicy::Policy::Expanding);
verticalLayout_7->addItem(verticalSpacer_7);
horizontalLayout_15 = new QHBoxLayout();
horizontalLayout_15->setObjectName("horizontalLayout_15");
verticalLayout_7->addLayout(horizontalLayout_15);
horizontalLayout_16->addWidget(frame_history);
horizontalLayout_16->setStretch(0, 1);
horizontalLayout_16->setStretch(1, 1);
horizontalLayout_16->setStretch(2, 2);
verticalLayout_8->addWidget(frame_5);
frame_8 = new QFrame(tab_4);
frame_8->setObjectName("frame_8");
frame_8->setMinimumSize(QSize(90, 0));
frame_8->setFrameShape(QFrame::Shape::StyledPanel);
frame_8->setFrameShadow(QFrame::Shadow::Raised);
horizontalLayout_18 = new QHBoxLayout(frame_8);
horizontalLayout_18->setObjectName("horizontalLayout_18");
horizontalSpacer_11 = new QSpacerItem(959, 20, QSizePolicy::Policy::Expanding, QSizePolicy::Policy::Minimum);
horizontalLayout_18->addItem(horizontalSpacer_11);
label_20 = new QLabel(frame_8);
label_20->setObjectName("label_20");
label_20->setStyleSheet(QString::fromUtf8("font: 18pt \"Microsoft YaHei UI\";\n"
"color: #ffffff"));
horizontalLayout_18->addWidget(label_20);
label_21 = new QLabel(frame_8);
label_21->setObjectName("label_21");
label_21->setStyleSheet(QString::fromUtf8("font: 18pt \"Microsoft YaHei UI\";\n"
"color: rgb(144,255,60);r'g'b"));
horizontalLayout_18->addWidget(label_21);
horizontalSpacer_12 = new QSpacerItem(959, 20, QSizePolicy::Policy::Expanding, QSizePolicy::Policy::Minimum);
horizontalLayout_18->addItem(horizontalSpacer_12);
verticalLayout_8->addWidget(frame_8);
tabWidget->addTab(tab_4, QString());
horizontalLayout->addWidget(tabWidget);
@ -598,7 +1133,7 @@ public:
retranslateUi(Widget);
tabWidget->setCurrentIndex(1);
tabWidget->setCurrentIndex(2);
QMetaObject::connectSlotsByName(Widget);
@ -646,7 +1181,26 @@ public:
groupBox_3->setTitle(QCoreApplication::translate("Widget", "\350\207\252\345\212\250\345\226\267\351\230\200\346\265\213\350\257\225", nullptr));
btn_test_single->setText(QCoreApplication::translate("Widget", "\345\274\200\345\247\213\346\265\213\350\257\225", nullptr));
btn_stop_test->setText(QCoreApplication::translate("Widget", "\345\201\234\346\255\242\346\265\213\350\257\225", nullptr));
btn_tab3_backtab2_2->setText(QCoreApplication::translate("Widget", "home", nullptr));
tabWidget->setTabText(tabWidget->indexOf(tab_3), QCoreApplication::translate("Widget", "Tab 3", nullptr));
label_5->setText(QCoreApplication::translate("Widget", "\351\223\266\345\212\233\346\243\211\346\262\271\346\234\272\346\242\260\346\234\211\351\231\220\345\205\254\345\217\270", nullptr));
label_6->setText(QCoreApplication::translate("Widget", "2024-12-26 10:30AM", nullptr));
btn_settings->setText(QCoreApplication::translate("Widget", "\350\256\276\347\275\256", nullptr));
btn_live->setText(QCoreApplication::translate("Widget", "\347\233\270\346\234\272", nullptr));
label_7->setText(QCoreApplication::translate("Widget", "\350\277\220\350\241\214\346\227\266\351\227\264", nullptr));
label_10->setText(QCoreApplication::translate("Widget", "482", nullptr));
label_8->setText(QCoreApplication::translate("Widget", "\345\260\217\346\227\266", nullptr));
label_11->setText(QCoreApplication::translate("Widget", "52", nullptr));
label_9->setText(QCoreApplication::translate("Widget", "\345\210\206\351\222\237", nullptr));
label_12->setText(QCoreApplication::translate("Widget", "\344\273\212\346\227\245\350\277\220\350\241\214\346\227\266\351\225\277:8\345\260\217\346\227\26615\345\210\206\351\222\23732\347\247\222", nullptr));
label_13->setText(QCoreApplication::translate("Widget", "\345\226\267\346\260\224\346\254\241\346\225\260", nullptr));
label_16->setText(QCoreApplication::translate("Widget", "12,233,473", nullptr));
label_17->setText(QCoreApplication::translate("Widget", "\346\254\241", nullptr));
label_19->setText(QCoreApplication::translate("Widget", "\344\273\212\346\227\245\347\264\257\350\256\241\345\226\267\346\260\224\346\254\241\346\225\260:", nullptr));
label_18->setText(QCoreApplication::translate("Widget", "320\346\254\241", nullptr));
label_14->setText(QCoreApplication::translate("Widget", "\345\216\206\345\217\262\346\225\260\346\215\256", nullptr));
label_20->setText(QCoreApplication::translate("Widget", "\350\256\276\345\244\207\347\212\266\346\200\201: ", nullptr));
label_21->setText(QCoreApplication::translate("Widget", "\346\255\243\345\270\270\350\277\220\350\241\214", nullptr));
tabWidget->setTabText(tabWidget->indexOf(tab_4), QCoreApplication::translate("Widget", "Tab 4", nullptr));
} // retranslateUi

View File

@ -67,7 +67,7 @@ Widget::Widget(QWidget *parent)
connect(timer, &QTimer::timeout, this, &Widget::refreshImage);
timer->start(50); // 每50毫秒秒刷新一次界面
ui->tabWidget->setCurrentIndex(1);
// ui->tabWidget->setCurrentIndex(1);
}
Widget::~Widget()
@ -389,3 +389,21 @@ void Widget::on_btn_tab3_backtab2_clicked()
ui->tabWidget->setCurrentIndex(1);
}
void Widget::on_btn_live_clicked()
{
ui->tabWidget->setCurrentIndex(1);
}
void Widget::on_btn_tab3_backtab2_2_clicked()
{
ui->tabWidget->setCurrentIndex(3);
}
void Widget::on_btn_settings_clicked()
{
ui->tabWidget->setCurrentIndex(2);
}

View File

@ -48,6 +48,12 @@ private slots:
void on_btn_tab3_backtab2_clicked();
void on_btn_live_clicked();
void on_btn_tab3_backtab2_2_clicked();
void on_btn_settings_clicked();
private:
Ui::Widget *ui;

787
widget.ui
View File

@ -35,7 +35,7 @@
<string notr="true">background-color: rgb(228, 223, 186);</string>
</property>
<property name="currentIndex">
<number>1</number>
<number>2</number>
</property>
<property name="tabBarAutoHide">
<bool>true</bool>
@ -900,11 +900,796 @@ border-color: rgb(0, 0, 0);</string>
</property>
</widget>
</widget>
<widget class="QPushButton" name="btn_tab3_backtab2_2">
<property name="geometry">
<rect>
<x>510</x>
<y>770</y>
<width>231</width>
<height>141</height>
</rect>
</property>
<property name="text">
<string>home</string>
</property>
</widget>
</widget>
<widget class="QWidget" name="tab_4">
<property name="styleSheet">
<string notr="true">background-color: rgb(26, 26, 26);</string>
</property>
<attribute name="title">
<string>Tab 4</string>
</attribute>
<layout class="QVBoxLayout" name="verticalLayout_8">
<property name="leftMargin">
<number>0</number>
</property>
<property name="rightMargin">
<number>0</number>
</property>
<item>
<widget class="QFrame" name="frame_4">
<property name="frameShape">
<enum>QFrame::Shape::StyledPanel</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Shadow::Raised</enum>
</property>
<layout class="QHBoxLayout" name="horizontalLayout_2">
<item>
<widget class="QLabel" name="label_5">
<property name="styleSheet">
<string notr="true">font: 700 30pt &quot;Microsoft YaHei UI&quot;;
color: rgb(255, 255, 255)</string>
</property>
<property name="text">
<string>银力棉油机械有限公司</string>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_3">
<property name="orientation">
<enum>Qt::Orientation::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>672</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QLabel" name="label_6">
<property name="styleSheet">
<string notr="true">font: 14pt &quot;Microsoft YaHei UI&quot;;
color: rgb(170, 170, 170)</string>
</property>
<property name="text">
<string>2024-12-26 10:30AM</string>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_4">
<property name="orientation">
<enum>Qt::Orientation::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>672</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QPushButton" name="btn_settings">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>0</width>
<height>0</height>
</size>
</property>
<property name="styleSheet">
<string notr="true">/* btn_start 样式 */
QPushButton#btn_settings {
background-color: rgb(52,52,52); /* 暗绿色背景 */
color: #ffffff; /* 白色文字 */
border-radius: 12px; /* 圆角半径 */
font-size: 24px; /* 字体大小 */
font-weight: bold; /* 粗体字 */
padding: 10px 20px; /* 内边距 */
}
QPushButton#btn_settings:hover {
background-color: #28b45d; /* 稍亮的暗绿色背景 */
border: 2px solid #1f8a4d; /* 暗绿色边框 */
}
QPushButton#btn_settings:pressed {
background-color: #186a3b; /* 更深的绿色背景 */
color: #BDC3C7; /* 灰色文字 */
border: 2px solid #134d33; /* 更深的绿色边框 */
}
QPushButton#btn_start:disabled {
background-color: #7F8C8D; /* 灰色背景 */
color: #BDC3C7; /* 灰色文字 */
border: 2px solid #7F8C8D; /* 灰色边框 */
}</string>
</property>
<property name="text">
<string>设置</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="btn_live">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>0</width>
<height>0</height>
</size>
</property>
<property name="styleSheet">
<string notr="true">/* btn_start 样式 */
QPushButton#btn_live {
background-color: rgb(52,52,52); /* 暗绿色背景 */
color: #ffffff; /* 白色文字 */
border-radius: 12px; /* 圆角半径 */
font-size: 24px; /* 字体大小 */
font-weight: bold; /* 粗体字 */
padding: 10px 20px; /* 内边距 */
}
QPushButton#btn_live:hover {
background-color: #28b45d; /* 稍亮的暗绿色背景 */
border: 2px solid #1f8a4d; /* 暗绿色边框 */
}
QPushButton#btn_live:pressed {
background-color: #186a3b; /* 更深的绿色背景 */
color: #BDC3C7; /* 灰色文字 */
border: 2px solid #134d33; /* 更深的绿色边框 */
}
QPushButton#btn_start:disabled {
background-color: #7F8C8D; /* 灰色背景 */
color: #BDC3C7; /* 灰色文字 */
border: 2px solid #7F8C8D; /* 灰色边框 */
}</string>
</property>
<property name="text">
<string>相机</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QFrame" name="frame_5">
<property name="styleSheet">
<string notr="true">QFrame#frame_5{
border:2px solid rgb(70,70,70);
font-family: Arial, sans-serif;
background: qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1, stop:0 #2d2d2d, stop:1 #1a1a1a);
color: #ffffff;}</string>
</property>
<property name="frameShape">
<enum>QFrame::Shape::StyledPanel</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Shadow::Raised</enum>
</property>
<layout class="QHBoxLayout" name="horizontalLayout_16" stretch="1,1,2">
<property name="spacing">
<number>24</number>
</property>
<property name="leftMargin">
<number>38</number>
</property>
<property name="topMargin">
<number>20</number>
</property>
<property name="rightMargin">
<number>38</number>
</property>
<property name="bottomMargin">
<number>20</number>
</property>
<item>
<widget class="QFrame" name="frame_running_time">
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>346</width>
<height>0</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>16777215</height>
</size>
</property>
<property name="styleSheet">
<string notr="true">QFrame#frame_running_time{
background: #2d2d2d;
border: 3px solid #444;
border-radius: 12px;
padding: 20px;
min-width: 300px;
box-shadow: 0px 8px 12px rgba(0, 0, 0, 0.5);}</string>
</property>
<property name="frameShape">
<enum>QFrame::Shape::StyledPanel</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Shadow::Raised</enum>
</property>
<layout class="QVBoxLayout" name="verticalLayout_2">
<item>
<layout class="QHBoxLayout" name="horizontalLayout_7">
<item>
<widget class="QLabel" name="label_7">
<property name="styleSheet">
<string notr="true">font: 700 26pt &quot;Microsoft YaHei UI&quot;;
color:rgb(223,223,223);
background-color: #2d2d2d;;
</string>
</property>
<property name="text">
<string>运行时间</string>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_5">
<property name="orientation">
<enum>Qt::Orientation::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
<item>
<spacer name="verticalSpacer_3">
<property name="orientation">
<enum>Qt::Orientation::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>357</height>
</size>
</property>
</spacer>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_8">
<property name="sizeConstraint">
<enum>QLayout::SizeConstraint::SetMinimumSize</enum>
</property>
<item>
<widget class="QLabel" name="label_10">
<property name="styleSheet">
<string notr="true">font: 700 32pt &quot;Microsoft YaHei UI&quot;;
color:rgb(105,186,210);
background-color: #2d2d2d;;
</string>
</property>
<property name="text">
<string>482</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_8">
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="Minimum">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="styleSheet">
<string notr="true">font: 700 20pt &quot;Microsoft YaHei UI&quot;;
color:rgb(105,186,210);
background-color: #2d2d2d;;
</string>
</property>
<property name="text">
<string>小时</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_11">
<property name="styleSheet">
<string notr="true">font: 700 32pt &quot;Microsoft YaHei UI&quot;;
color:rgb(105,186,210);
background-color: #2d2d2d;;
</string>
</property>
<property name="text">
<string>52</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_9">
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="Minimum">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="styleSheet">
<string notr="true">font: 700 20pt &quot;Microsoft YaHei UI&quot;;
color:rgb(105,186,210);
background-color: #2d2d2d;;
</string>
</property>
<property name="text">
<string>分钟</string>
</property>
</widget>
</item>
</layout>
</item>
<item>
<spacer name="verticalSpacer_2">
<property name="orientation">
<enum>Qt::Orientation::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>357</height>
</size>
</property>
</spacer>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_9">
<item>
<widget class="QLabel" name="label_12">
<property name="styleSheet">
<string notr="true">font: 700 14pt &quot;Microsoft YaHei UI&quot;;
color:rgb(169,169,169);
background-color: #2d2d2d;;
</string>
</property>
<property name="text">
<string>今日运行时长:8小时15分钟32秒</string>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_6">
<property name="orientation">
<enum>Qt::Orientation::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
<item>
<widget class="QProgressBar" name="progressBar">
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="styleSheet">
<string notr="true">/* 进度条样式 */
QProgressBar {
background: #444;
border: none;
height: 24px;
border-radius: 4px;
}
QProgressBar::chunk {
background: #00bcd4;
width: 70%; /* 模拟进度 */
}
/* 状态栏样式 */
QStatusBar {
background: #1a1a1a;
padding: 10px 20px;
border-top: 1px solid #444;
color: #fff;
}
QLabel#status-text {
color: #00ff00;
font-weight: bold;
}</string>
</property>
<property name="value">
<number>24</number>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QFrame" name="frame_valve">
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>16777215</height>
</size>
</property>
<property name="styleSheet">
<string notr="true">QFrame#frame_valve{
background: #2d2d2d;
border: 3px solid #444;
border-radius: 12px;
padding: 20px;
min-width: 300px;
box-shadow: 0px 8px 12px rgba(0, 0, 0, 0.5);}</string>
</property>
<property name="frameShape">
<enum>QFrame::Shape::StyledPanel</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Shadow::Raised</enum>
</property>
<layout class="QVBoxLayout" name="verticalLayout_6">
<item>
<layout class="QHBoxLayout" name="horizontalLayout_10">
<item>
<widget class="QLabel" name="label_13">
<property name="styleSheet">
<string notr="true">font: 700 26pt &quot;Microsoft YaHei UI&quot;;
color:rgb(223,223,223);
background-color: #2d2d2d;;
</string>
</property>
<property name="text">
<string>喷气次数</string>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_7">
<property name="orientation">
<enum>Qt::Orientation::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
<item>
<spacer name="verticalSpacer_4">
<property name="orientation">
<enum>Qt::Orientation::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>163</height>
</size>
</property>
</spacer>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_11">
<item>
<widget class="QLabel" name="label_16">
<property name="styleSheet">
<string notr="true">font: 700 32pt &quot;Microsoft YaHei UI&quot;;
color:rgb(105,186,210);
background-color: #2d2d2d;;
</string>
</property>
<property name="text">
<string>12,233,473</string>
</property>
<property name="alignment">
<set>Qt::AlignmentFlag::AlignRight|Qt::AlignmentFlag::AlignTrailing|Qt::AlignmentFlag::AlignVCenter</set>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_17">
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="Minimum">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="styleSheet">
<string notr="true">font: 700 20pt &quot;Microsoft YaHei UI&quot;;
color:rgb(105,186,210);
background-color: #2d2d2d;;
</string>
</property>
<property name="text">
<string>次</string>
</property>
</widget>
</item>
</layout>
</item>
<item>
<spacer name="verticalSpacer_5">
<property name="orientation">
<enum>Qt::Orientation::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>163</height>
</size>
</property>
</spacer>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_17">
<item>
<widget class="QLabel" name="label_19">
<property name="styleSheet">
<string notr="true">font: 700 14pt &quot;Microsoft YaHei UI&quot;;
color:rgb(169,169,169);
background-color: #2d2d2d;;
</string>
</property>
<property name="text">
<string>今日累计喷气次数:</string>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_10">
<property name="orientation">
<enum>Qt::Orientation::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_12">
<item>
<widget class="QLabel" name="label_18">
<property name="styleSheet">
<string notr="true">font: 700 16pt &quot;Microsoft YaHei UI&quot;;
color:rgb(169,169,169);
background-color: #2d2d2d;;
</string>
</property>
<property name="text">
<string>320次</string>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_8">
<property name="orientation">
<enum>Qt::Orientation::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QFrame" name="frame_history">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>16777215</height>
</size>
</property>
<property name="styleSheet">
<string notr="true">QFrame#frame_history{
background: #2d2d2d;
border: 3px solid #444;
border-radius: 12px;
padding: 20px;
min-width: 300px;
box-shadow: 0px 8px 12px rgba(0, 0, 0, 0.5);}</string>
</property>
<property name="frameShape">
<enum>QFrame::Shape::StyledPanel</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Shadow::Raised</enum>
</property>
<layout class="QVBoxLayout" name="verticalLayout_7">
<item>
<layout class="QHBoxLayout" name="horizontalLayout_13">
<item>
<widget class="QLabel" name="label_14">
<property name="styleSheet">
<string notr="true">font: 700 26pt &quot;Microsoft YaHei UI&quot;;
color:rgb(223,223,223);
background-color: #2d2d2d;;
</string>
</property>
<property name="text">
<string>历史数据</string>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_9">
<property name="orientation">
<enum>Qt::Orientation::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_14"/>
</item>
<item>
<spacer name="verticalSpacer_7">
<property name="orientation">
<enum>Qt::Orientation::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>163</height>
</size>
</property>
</spacer>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_15"/>
</item>
</layout>
</widget>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QFrame" name="frame_8">
<property name="minimumSize">
<size>
<width>90</width>
<height>0</height>
</size>
</property>
<property name="frameShape">
<enum>QFrame::Shape::StyledPanel</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Shadow::Raised</enum>
</property>
<layout class="QHBoxLayout" name="horizontalLayout_18">
<item>
<spacer name="horizontalSpacer_11">
<property name="orientation">
<enum>Qt::Orientation::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>959</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QLabel" name="label_20">
<property name="styleSheet">
<string notr="true">font: 18pt &quot;Microsoft YaHei UI&quot;;
color: #ffffff</string>
</property>
<property name="text">
<string>设备状态: </string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_21">
<property name="styleSheet">
<string notr="true">font: 18pt &quot;Microsoft YaHei UI&quot;;
color: rgb(144,255,60);r'g'b</string>
</property>
<property name="text">
<string>正常运行</string>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_12">
<property name="orientation">
<enum>Qt::Orientation::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>959</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
</item>
</layout>
</widget>
</widget>
</item>