jianbin.chang常健彬 ce734d1af1 厂家提供原始代码
2025-07-17 08:39:15 +08:00

932 lines
28 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>bacteria</class>
<widget class="QWidget" name="bacteria">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>1920</width>
<height>703</height>
</rect>
</property>
<property name="windowTitle">
<string>Form</string>
</property>
<property name="styleSheet">
<string notr="true">QSlider#horizontalSlider::groove:horizontal {
border: none;
height: 6px;
border-radius: 3px;
background: lightgray;
}
QSlider#horizontalSlider::handle:horizontal {
border: none;
margin: -5px 0px; /* 上下边距和左右边距*/
width: 16px;
height: 16px;
border-radius: 8px;
background: rgb(35, 215, 255);
}
/*划过部分*/
QSlider#horizontalSlider::sub-page:horizontal {
background: rgb(0, 170, 255);
height: 4px;
border-radius: 1px;
}
/*未划过部分*/
QSlider#horizontalSlider::add-page:horizontal {
background: rgb(255, 255, 255);
height: 4px;
border-radius: 3px;
}</string>
</property>
<layout class="QGridLayout" name="gridLayout_3">
<item row="1" column="0">
<layout class="QGridLayout" name="gridLayout_5">
<property name="spacing">
<number>0</number>
</property>
<item row="0" column="2">
<widget class="QFrame" name="frame_2">
<property name="frameShape">
<enum>QFrame::StyledPanel</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Raised</enum>
</property>
<layout class="QGridLayout" name="gridLayout_2">
<property name="spacing">
<number>0</number>
</property>
<item row="1" column="0">
<widget class="QTableWidget" name="tableWidget_3">
<property name="styleSheet">
<string notr="true"> border: none;</string>
</property>
</widget>
</item>
<item row="0" column="0">
<widget class="QPushButton" name="pushButton_7">
<property name="text">
<string/>
</property>
<property name="icon">
<iconset resource="img.qrc">
<normaloff>:/new/icon/shang.png</normaloff>:/new/icon/shang.png</iconset>
</property>
<property name="iconSize">
<size>
<width>60</width>
<height>16</height>
</size>
</property>
</widget>
</item>
<item row="2" column="0">
<widget class="QPushButton" name="pushButton_8">
<property name="text">
<string/>
</property>
<property name="icon">
<iconset resource="img.qrc">
<normaloff>:/new/icon/xia.png</normaloff>:/new/icon/xia.png</iconset>
</property>
<property name="iconSize">
<size>
<width>60</width>
<height>16</height>
</size>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item row="0" column="0">
<widget class="QFrame" name="frame">
<property name="frameShape">
<enum>QFrame::StyledPanel</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Raised</enum>
</property>
<layout class="QGridLayout" name="gridLayout">
<item row="1" column="0">
<layout class="QHBoxLayout" name="horizontalLayout_3">
<item>
<widget class="QFrame" name="frame_3">
<property name="styleSheet">
<string notr="true">background-color: rgb(0, 0, 0);</string>
</property>
<property name="frameShape">
<enum>QFrame::StyledPanel</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Raised</enum>
</property>
<layout class="QVBoxLayout" name="verticalLayout_2">
<property name="spacing">
<number>0</number>
</property>
<property name="leftMargin">
<number>0</number>
</property>
<property name="topMargin">
<number>0</number>
</property>
<property name="rightMargin">
<number>0</number>
</property>
<property name="bottomMargin">
<number>0</number>
</property>
<item>
<widget class="cammer" name="widget_3" native="true">
<property name="styleSheet">
<string notr="true"> margin-left: 0px;</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item>
<layout class="QVBoxLayout" name="verticalLayout_3">
<property name="spacing">
<number>0</number>
</property>
<item>
<widget class="QLabel" name="label_4">
<property name="styleSheet">
<string notr="true">background-color: rgb(0, 0, 0);</string>
</property>
<property name="text">
<string>111</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_5">
<property name="styleSheet">
<string notr="true">background-color: rgb(0, 0, 0);</string>
</property>
<property name="text">
<string>TextLabel</string>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</item>
<item row="2" column="0">
<layout class="QHBoxLayout" name="horizontalLayout_2">
<property name="spacing">
<number>0</number>
</property>
<item>
<spacer name="horizontalSpacer_4">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::Fixed</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>350</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QPushButton" name="pushButton">
<property name="styleSheet">
<string notr="true">QPushButton {
background-color: qlineargradient(spread:pad, x1:0, y1:0, x2:1, y2:1,
stop:0 rgba(0, 255, 255, 255) ,
stop:1 rgba(0, 144, 209, 255)
);
color: rgb(255, 255, 255);
border-radius: 4px;
font: bold 10pt ;
}
</string>
</property>
<property name="text">
<string>拍照</string>
</property>
<property name="icon">
<iconset resource="img.qrc">
<normaloff>:/new/icon/Vector (3).png</normaloff>:/new/icon/Vector (3).png</iconset>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="pushButton_4">
<property name="styleSheet">
<string notr="true">QPushButton {
background-color: qlineargradient(spread:pad, x1:0, y1:0, x2:1, y2:1,
stop:0 rgba(0, 255, 255, 255) ,
stop:1 rgba(0, 144, 209, 255)
);
color: rgb(255, 255, 255);
border-radius: 4px;
}
</string>
</property>
<property name="text">
<string>重新拍照</string>
</property>
<property name="icon">
<iconset resource="img.qrc">
<normaloff>:/new/icon/Vector (3).png</normaloff>:/new/icon/Vector (3).png</iconset>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="pushButton_12">
<property name="text">
<string>PushButton</string>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_3">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::Expanding</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>720</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QLabel" name="label">
<property name="styleSheet">
<string notr="true">font:10pt;</string>
</property>
<property name="text">
<string>计数结果:</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_2">
<property name="styleSheet">
<string notr="true">font:12pt;</string>
</property>
<property name="text">
<string/>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_11">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::Fixed</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>30</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QPushButton" name="pushButton_3">
<property name="styleSheet">
<string notr="true">QPushButton {
background-color: qlineargradient(spread:pad, x1:0, y1:0, x2:1, y2:1,
stop:0 rgba(0, 255, 255, 255) ,
stop:1 rgba(0, 144, 209, 255)
);
color: rgb(255, 255, 255);
border-radius: 4px;
}
</string>
</property>
<property name="text">
<string>计数</string>
</property>
<property name="icon">
<iconset resource="img.qrc">
<normaloff>:/new/icon/Frame (3).png</normaloff>:/new/icon/Frame (3).png</iconset>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="pushButton_6">
<property name="styleSheet">
<string notr="true">QPushButton {
background-color: qlineargradient(spread:pad, x1:0, y1:0, x2:1, y2:1,
stop:0 rgba(0, 255, 255, 255) ,
stop:1 rgba(0, 144, 209, 255)
);
color: rgb(255, 255, 255);
border-radius: 4px;
font: bold 10pt ;
}
</string>
</property>
<property name="text">
<string>读取文件</string>
</property>
<property name="icon">
<iconset resource="img.qrc">
<normaloff>:/new/icon/Frame (3).png</normaloff>:/new/icon/Frame (3).png</iconset>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::Fixed</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>280</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
<item row="0" column="0">
<widget class="QWidget" name="widget_2" native="true">
<layout class="QHBoxLayout" name="horizontalLayout_7">
<property name="spacing">
<number>0</number>
</property>
<property name="leftMargin">
<number>9</number>
</property>
<property name="topMargin">
<number>0</number>
</property>
<property name="rightMargin">
<number>0</number>
</property>
<property name="bottomMargin">
<number>0</number>
</property>
<item>
<widget class="QPushButton" name="pushButton_2">
<property name="styleSheet">
<string notr="true">QPushButton {
background-color: qlineargradient(spread:pad, x1:0, y1:0, x2:1, y2:1,
stop:0 rgba(0, 255, 255, 255) ,
stop:1 rgba(0, 144, 209, 255)
);
color: rgb(255, 255, 255);
border-radius: 4px;
font: bold 10pt ;
}
</string>
</property>
<property name="text">
<string>连接相机</string>
</property>
<property name="icon">
<iconset resource="img.qrc">
<normaloff>:/new/icon/Vector (2).png</normaloff>:/new/icon/Vector (2).png</iconset>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_7">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::Fixed</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QPushButton" name="pushButton_13">
<property name="styleSheet">
<string notr="true">QPushButton {
background-color: qlineargradient(spread:pad, x1:0, y1:0, x2:1, y2:1,
stop:0 rgba(0, 255, 255, 255) ,
stop:1 rgba(0, 144, 209, 255)
);
color: rgb(255, 255, 255);
border-radius: 4px;
font: bold 10pt ;
}
</string>
</property>
<property name="text">
<string>审查模式</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="pushButton_14">
<property name="styleSheet">
<string notr="true">QPushButton {
background-color: qlineargradient(spread:pad, x1:0, y1:0, x2:1, y2:1,
stop:0 rgba(0, 255, 255, 255) ,
stop:1 rgba(0, 144, 209, 255)
);
color: rgb(255, 255, 255);
border-radius: 4px;
font: bold 10pt ;
}
</string>
</property>
<property name="text">
<string>保存</string>
</property>
</widget>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout">
<property name="spacing">
<number>0</number>
</property>
<item>
<spacer name="horizontalSpacer_2">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::Fixed</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>10</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QPushButton" name="pushButton_9">
<property name="text">
<string>PushButton</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="pushButton_10">
<property name="text">
<string>dayin</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="pushButton_11">
<property name="text">
<string>PushButton</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_7">
<property name="text">
<string>上光源</string>
</property>
</widget>
</item>
<item>
<widget class="QSlider" name="horizontalSlider">
<property name="styleSheet">
<string notr="true">QSlider::groove:horizontal {
border: none;
height: 6px;
border-radius: 3px;
background: lightgray;
}
QSlider::handle:horizontal {
border: none;
margin: -5px 0px; /* 上下边距和左右边距*/
width: 16px;
height: 16px;
border-radius: 8px;
image: url(:/new/icon/yuan.png);
}
/*划过部分*/
QSlider::sub-page:horizontal {
background-color: rgb(0, 170, 255);
height: 4px;
border-radius:3px;
}
/*未划过部分*/
QSlider::add-page:horizontal {
background: rgb(208, 208, 208);
height: 4px;
border-radius: 3px;
}</string>
</property>
<property name="maximum">
<number>255</number>
</property>
<property name="value">
<number>76</number>
</property>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="tickPosition">
<enum>QSlider::NoTicks</enum>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_6">
<property name="text">
<string/>
</property>
</widget>
</item>
</layout>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_4">
<property name="spacing">
<number>0</number>
</property>
<item>
<widget class="QLabel" name="label_8">
<property name="text">
<string>下光源</string>
</property>
</widget>
</item>
<item>
<widget class="QSlider" name="horizontalSlider_2">
<property name="styleSheet">
<string notr="true">QSlider::groove:horizontal {
border: none;
height: 6px;
border-radius: 3px;
background: lightgray;
}
QSlider::handle:horizontal {
border: none;
margin: -5px 0px; /* 上下边距和左右边距*/
width: 16px;
height: 16px;
border-radius: 8px;
image: url(:/new/icon/yuan.png);
}
/*划过部分*/
QSlider::sub-page:horizontal {
background-color: rgb(0, 170, 255);
height: 4px;
border-radius:3px;
}
/*未划过部分*/
QSlider::add-page:horizontal {
background: rgb(208, 208, 208);
height: 4px;
border-radius: 3px;
}</string>
</property>
<property name="maximum">
<number>255</number>
</property>
<property name="value">
<number>0</number>
</property>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_9">
<property name="text">
<string/>
</property>
</widget>
</item>
</layout>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_11">
<property name="spacing">
<number>0</number>
</property>
<item>
<widget class="QLabel" name="label_18">
<property name="text">
<string>检测半径</string>
</property>
</widget>
</item>
<item>
<widget class="QSlider" name="horizontalSlider_7">
<property name="styleSheet">
<string notr="true">QSlider::groove:horizontal {
border: none;
height: 6px;
border-radius: 3px;
background: lightgray;
}
QSlider::handle:horizontal {
border: none;
margin: -5px 0px; /* 上下边距和左右边距*/
width: 16px;
height: 16px;
border-radius: 8px;
image: url(:/new/icon/yuan.png);
}
/*划过部分*/
QSlider::sub-page:horizontal {
background-color: rgb(0, 170, 255);
height: 4px;
border-radius:3px;
}
/*未划过部分*/
QSlider::add-page:horizontal {
background: rgb(208, 208, 208);
height: 4px;
border-radius: 3px;
}</string>
</property>
<property name="maximum">
<number>100</number>
</property>
<property name="value">
<number>92</number>
</property>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_19">
<property name="text">
<string/>
</property>
</widget>
</item>
</layout>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_6">
<property name="spacing">
<number>10</number>
</property>
<item>
<widget class="QLabel" name="label_3">
<property name="text">
<string>TextLabel</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_14">
<property name="text">
<string>阈值下限</string>
</property>
</widget>
</item>
<item>
<widget class="QSlider" name="horizontalSlider_5">
<property name="styleSheet">
<string notr="true">QSlider::groove:horizontal {
border: none;
height: 6px;
border-radius: 3px;
background: lightgray;
}
QSlider::handle:horizontal {
border: none;
margin: -5px 0px; /* 上下边距和左右边距*/
width: 16px;
height: 16px;
border-radius: 8px;
image: url(:/new/icon/yuan.png);
}
/*划过部分*/
QSlider::sub-page:horizontal {
background-color: rgb(0, 170, 255);
height: 4px;
border-radius:3px;
}
/*未划过部分*/
QSlider::add-page:horizontal {
background: rgb(208, 208, 208);
height: 4px;
border-radius: 3px;
}</string>
</property>
<property name="singleStep">
<number>1</number>
</property>
<property name="value">
<number>43</number>
</property>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="tickPosition">
<enum>QSlider::NoTicks</enum>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_15">
<property name="text">
<string/>
</property>
</widget>
</item>
</layout>
</item>
<item>
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<layout class="QHBoxLayout" name="horizontalLayout_9">
<property name="spacing">
<number>10</number>
</property>
<item>
<widget class="QLabel" name="label_16">
<property name="text">
<string>阈值上限</string>
</property>
</widget>
</item>
<item>
<widget class="QSlider" name="horizontalSlider_6">
<property name="styleSheet">
<string notr="true">QSlider::groove:horizontal {
border: none;
height: 6px;
border-radius: 3px;
background: lightgray;
}
QSlider::handle:horizontal {
border: none;
margin: -5px 0px; /* 上下边距和左右边距*/
width: 16px;
height: 16px;
border-radius: 8px;
image: url(:/new/icon/yuan.png);
}
/*划过部分*/
QSlider::sub-page:horizontal {
background-color: rgb(0, 170, 255);
height: 4px;
border-radius:3px;
}
/*未划过部分*/
QSlider::add-page:horizontal {
background: rgb(208, 208, 208);
height: 4px;
border-radius: 3px;
}</string>
</property>
<property name="value">
<number>99</number>
</property>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_17">
<property name="text">
<string/>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</item>
<item>
<widget class="QPushButton" name="pushButton_5">
<property name="styleSheet">
<string notr="true"> border: 1px solid rgb(175, 175, 175) ; </string>
</property>
<property name="text">
<string>历史记录</string>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_5">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::Fixed</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
</item>
</layout>
</widget>
</item>
<item row="0" column="1">
<spacer name="horizontalSpacer_6">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::Fixed</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>10</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
</layout>
</widget>
<customwidgets>
<customwidget>
<class>cammer</class>
<extends>QWidget</extends>
<header location="global">cammer.h</header>
<container>1</container>
</customwidget>
</customwidgets>
<resources>
<include location="img.qrc"/>
</resources>
<connections/>
</ui>