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

493 lines
13 KiB
XML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>zhong</class>
<widget class="QWidget" name="zhong">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>3762</width>
<height>520</height>
</rect>
</property>
<property name="windowTitle">
<string>Form</string>
</property>
<property name="styleSheet">
<string notr="true"/>
</property>
<layout class="QGridLayout" name="gridLayout_2">
<item row="0" column="0" colspan="2">
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
<spacer name="horizontalSpacer_3">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::Fixed</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>15</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QLabel" name="label_5">
<property name="styleSheet">
<string notr="true">font:12pt;</string>
</property>
<property name="text">
<string>菌属名称:</string>
</property>
</widget>
</item>
<item>
<widget class="QComboBox" name="comboBox">
<property name="styleSheet">
<string notr="true">/*QCombobox主体*/
QComboBox{
border: 1px solid rgb(175, 175, 175) ;
border-radius: 2px;
font:12pt
}
/*QCombobox右侧按钮*/
QComboBox::drop-down {
subcontrol-origin: padding;
subcontrol-position: top right;/*放于右方顶部*/
width: 30px;/*设置按钮范围宽度*/
/*border-radius: 15px;
border-left-width: 1px;
border-left-color: darkgray;
border-left-style: solid;*/
border-top-right-radius: 1px;/*设置边框圆角*/
border-bottom-right-radius: 1px;
/*padding-right: 50px;*/
}
/*QCombobox右侧按钮的箭头图标*/
QComboBox::down-arrow {
border-image: url(:/icon/arrow-down-s-line.png);
width: 20px;/*设置该图标的宽高*/
height: 20px;
}
</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_3">
<property name="styleSheet">
<string notr="true">font:12pt;</string>
</property>
<property name="text">
<string> 菌种名称:</string>
</property>
</widget>
</item>
<item>
<widget class="QComboBox" name="comboBox_2">
<property name="styleSheet">
<string notr="true">/*QCombobox主体*/
QComboBox{
border: 1px solid rgb(175, 175, 175) ;
border-radius: 2px;
font:12pt
}
/*QCombobox右侧按钮*/
QComboBox::drop-down {
subcontrol-origin: padding;
subcontrol-position: top right;/*放于右方顶部*/
width: 30px;/*设置按钮范围宽度*/
/*border-radius: 15px;
border-left-width: 1px;
border-left-color: darkgray;
border-left-style: solid;*/
border-top-right-radius: 1px;/*设置边框圆角*/
border-bottom-right-radius: 1px;
/*padding-right: 50px;*/
}
/*QCombobox右侧按钮的箭头图标*/
QComboBox::down-arrow {
border-image: url(:/icon/arrow-down-s-line.png);
width: 20px;/*设置该图标的宽高*/
height: 20px;
}
</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_4">
<property name="styleSheet">
<string notr="true">font:12pt;</string>
</property>
<property name="text">
<string> 创建时间:</string>
</property>
</widget>
</item>
<item>
<widget class="QFrame" name="frame_2">
<property name="styleSheet">
<string notr="true">background-color: rgb(255, 255, 255);
border: 1px solid rgba(74, 94, 226,0.7);
border-radius: 2px;
border: 1px solid gray; /* 设置1px宽的灰色实线边框 */
border-radius: 4px; /* 边框圆角半径为4像素实现倒角效果 */
padding: 2px 4px;
border: 1px solid rgb(175, 175, 175) ;
border-radius: 2px;
font:12pt;</string>
</property>
<property name="frameShape">
<enum>QFrame::StyledPanel</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Raised</enum>
</property>
<layout class="QHBoxLayout" name="horizontalLayout_6">
<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="QLineEdit" name="lineEdit_4">
<property name="styleSheet">
<string notr="true"> border: 1px solid rgba(74, 94, 226,0.7);
border: transparent;
border-radius: 1px;
background-color: rgb(255, 255, 255);
font:12pt
</string>
</property>
<property name="text">
<string/>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="pushButton_5">
<property name="styleSheet">
<string notr="true">border: transparent;</string>
</property>
<property name="text">
<string/>
</property>
<property name="icon">
<iconset resource="img.qrc">
<normaloff>:/new/icon/date.png</normaloff>:/new/icon/date.png</iconset>
</property>
<property name="checkable">
<bool>true</bool>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QLabel" name="label_10">
<property name="text">
<string/>
</property>
<property name="pixmap">
<pixmap resource="img.qrc">:/new/icon/-.png</pixmap>
</property>
</widget>
</item>
<item>
<widget class="QFrame" name="frame">
<property name="styleSheet">
<string notr="true">background-color: rgb(255, 255, 255);
border: 1px solid rgba(74, 94, 226,0.7);
border-radius: 2px;
border: 1px solid gray; /* 设置1px宽的灰色实线边框 */
border-radius: 4px; /* 边框圆角半径为4像素实现倒角效果 */
padding: 2px 4px;
border: 1px solid rgb(175, 175, 175) ;
border-radius: 2px;
font:12pt;</string>
</property>
<property name="frameShape">
<enum>QFrame::StyledPanel</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Raised</enum>
</property>
<layout class="QHBoxLayout" name="horizontalLayout_5">
<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="QLineEdit" name="lineEdit_3">
<property name="styleSheet">
<string notr="true"> border: 1px solid rgba(74, 94, 226,0.7);
border: transparent;
border-radius: 1px;
background-color: rgb(255, 255, 255);
font:12pt
</string>
</property>
<property name="text">
<string/>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="pushButton_6">
<property name="styleSheet">
<string notr="true">border: transparent;</string>
</property>
<property name="text">
<string/>
</property>
<property name="icon">
<iconset resource="img.qrc">
<normaloff>:/new/icon/date.png</normaloff>:/new/icon/date.png</iconset>
</property>
<property name="checkable">
<bool>true</bool>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<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>
</widget>
</item>
<item>
<widget class="QPushButton" name="pushButton_3">
<property name="styleSheet">
<string notr="true">border-radius: 4px;
background-color: rgb(255, 255, 255);
border: 1px solid gray;</string>
</property>
<property name="text">
<string>重置</string>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
<item row="0" column="2">
<spacer name="horizontalSpacer_2">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item row="0" column="3">
<layout class="QHBoxLayout" name="horizontalLayout_7">
<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;
font: bold 10pt ;
}
</string>
</property>
<property name="text">
<string>新增</string>
</property>
<property name="icon">
<iconset resource="img.qrc">
<normaloff>:/new/icon/Plus.png</normaloff>:/new/icon/Plus.png</iconset>
</property>
</widget>
</item>
<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>20</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
<item row="1" column="1">
<spacer name="verticalSpacer">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::Fixed</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>10</height>
</size>
</property>
</spacer>
</item>
<item row="2" column="0" colspan="4">
<widget class="QWidget" name="widget" native="true">
<layout class="QGridLayout" name="gridLayout">
<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>
<property name="spacing">
<number>0</number>
</property>
<item row="1" column="0">
<widget class="QTableView" name="tableView">
<property name="styleSheet">
<string notr="true">QTableView{ border: transparent;}
QTableView::item{ border: none;
text-align:center; /* 设置文本水平居中 */
}
QTableView::item:alternate{ background-color: rgba(229, 247, 255, 1); }
QTableView::item:selected { background-color: transparent;
color: rgb(0, 0, 0);
}
QHeaderView::section:horizontal:frist {
padding:3px;
margin:0px;
color:#FFFFFF;
font: bold 11pt &quot;微软雅黑&quot;;
background: rgb(77,199,255);
border-top-left-radius:12px;
border-top-right-radius:0px;
border-bottom-left-radius:0px;
border-bottom-right-radius:0px;
}
QHeaderView::section:horizontal:middle {
padding:3px;
margin:0px;
color:#FFFFFF;
font: bold 11pt &quot;微软雅黑&quot;;
background: rgb(77,199,255);
border-radius:0px;
}
QHeaderView::section:horizontal:last {
padding:3px;
margin:0px;
color:#FFFFFF;
font: bold 11pt &quot;微软雅黑&quot;;
background: rgb(77,199,255);
border-top-left-radius:0px;
border-top-right-radius:15px;
border-bottom-left-radius:0px;
border-bottom-right-radius:0px;
}</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
</layout>
</widget>
<resources>
<include location="img.qrc"/>
</resources>
<connections/>
</ui>