2290 lines
78 KiB
XML
2290 lines
78 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
||
<ui version="4.0">
|
||
<class>MainWindow</class>
|
||
<widget class="QMainWindow" name="MainWindow">
|
||
<property name="geometry">
|
||
<rect>
|
||
<x>0</x>
|
||
<y>0</y>
|
||
<width>1198</width>
|
||
<height>717</height>
|
||
</rect>
|
||
</property>
|
||
<property name="windowTitle">
|
||
<string>110V传感器上位机调试助手</string>
|
||
</property>
|
||
<widget class="QWidget" name="centralwidget">
|
||
<layout class="QHBoxLayout" name="horizontalLayout">
|
||
<item>
|
||
<widget class="QTabWidget" name="tabWidget">
|
||
<property name="font">
|
||
<font>
|
||
<family>宋体</family>
|
||
<pointsize>12</pointsize>
|
||
</font>
|
||
</property>
|
||
<property name="contextMenuPolicy">
|
||
<enum>Qt::ContextMenuPolicy::CustomContextMenu</enum>
|
||
</property>
|
||
<property name="styleSheet">
|
||
<string notr="true">/* for QtCreator */
|
||
/*QDockWidget#ObjectInspectorDockWidget 也可*/
|
||
QDockWidget #ObjectInspector QTreeView::item::selected
|
||
{
|
||
background-color: #40735d;
|
||
color: white;
|
||
}
|
||
|
||
/* for QDesigner */
|
||
QDockWidget#qt_designer_objectinspector_dock QTreeView::item::selected
|
||
{
|
||
background-color: #40735d;
|
||
color: white;
|
||
}</string>
|
||
</property>
|
||
<property name="currentIndex">
|
||
<number>1</number>
|
||
</property>
|
||
<widget class="QWidget" name="tab1">
|
||
<property name="styleSheet">
|
||
<string notr="true">background-color: rgb(255, 255, 255);</string>
|
||
</property>
|
||
<attribute name="title">
|
||
<string>上位机</string>
|
||
</attribute>
|
||
<layout class="QHBoxLayout" name="horizontalLayout_4" stretch="2,3">
|
||
<item>
|
||
<layout class="QVBoxLayout" name="verticalLayout_2">
|
||
<item>
|
||
<widget class="QGroupBox" name="groupBox_5">
|
||
<property name="palette">
|
||
<palette>
|
||
<active>
|
||
<colorrole role="Button">
|
||
<brush brushstyle="SolidPattern">
|
||
<color alpha="255">
|
||
<red>240</red>
|
||
<green>240</green>
|
||
<blue>240</blue>
|
||
</color>
|
||
</brush>
|
||
</colorrole>
|
||
<colorrole role="Base">
|
||
<brush brushstyle="SolidPattern">
|
||
<color alpha="255">
|
||
<red>240</red>
|
||
<green>240</green>
|
||
<blue>240</blue>
|
||
</color>
|
||
</brush>
|
||
</colorrole>
|
||
<colorrole role="Window">
|
||
<brush brushstyle="SolidPattern">
|
||
<color alpha="255">
|
||
<red>240</red>
|
||
<green>240</green>
|
||
<blue>240</blue>
|
||
</color>
|
||
</brush>
|
||
</colorrole>
|
||
</active>
|
||
<inactive>
|
||
<colorrole role="Button">
|
||
<brush brushstyle="SolidPattern">
|
||
<color alpha="255">
|
||
<red>240</red>
|
||
<green>240</green>
|
||
<blue>240</blue>
|
||
</color>
|
||
</brush>
|
||
</colorrole>
|
||
<colorrole role="Base">
|
||
<brush brushstyle="SolidPattern">
|
||
<color alpha="255">
|
||
<red>240</red>
|
||
<green>240</green>
|
||
<blue>240</blue>
|
||
</color>
|
||
</brush>
|
||
</colorrole>
|
||
<colorrole role="Window">
|
||
<brush brushstyle="SolidPattern">
|
||
<color alpha="255">
|
||
<red>240</red>
|
||
<green>240</green>
|
||
<blue>240</blue>
|
||
</color>
|
||
</brush>
|
||
</colorrole>
|
||
</inactive>
|
||
<disabled>
|
||
<colorrole role="Button">
|
||
<brush brushstyle="SolidPattern">
|
||
<color alpha="255">
|
||
<red>240</red>
|
||
<green>240</green>
|
||
<blue>240</blue>
|
||
</color>
|
||
</brush>
|
||
</colorrole>
|
||
<colorrole role="Base">
|
||
<brush brushstyle="SolidPattern">
|
||
<color alpha="255">
|
||
<red>240</red>
|
||
<green>240</green>
|
||
<blue>240</blue>
|
||
</color>
|
||
</brush>
|
||
</colorrole>
|
||
<colorrole role="Window">
|
||
<brush brushstyle="SolidPattern">
|
||
<color alpha="255">
|
||
<red>240</red>
|
||
<green>240</green>
|
||
<blue>240</blue>
|
||
</color>
|
||
</brush>
|
||
</colorrole>
|
||
</disabled>
|
||
</palette>
|
||
</property>
|
||
<property name="font">
|
||
<font>
|
||
<family>Microsoft YaHei UI</family>
|
||
<pointsize>9</pointsize>
|
||
</font>
|
||
</property>
|
||
<property name="styleSheet">
|
||
<string notr="true">background-color: rgb(240, 240, 240);</string>
|
||
</property>
|
||
<property name="title">
|
||
<string>其他设置</string>
|
||
</property>
|
||
<layout class="QGridLayout" name="gridLayout_4">
|
||
<item row="0" column="0">
|
||
<widget class="QPushButton" name="readVersion">
|
||
<property name="text">
|
||
<string>版本信息</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="2" column="1">
|
||
<widget class="QLineEdit" name="lineEdit_Factor">
|
||
<property name="styleSheet">
|
||
<string notr="true">background-color: rgb(255, 255, 255);</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="0" column="1">
|
||
<widget class="QLineEdit" name="lineEdit_Version">
|
||
<property name="enabled">
|
||
<bool>true</bool>
|
||
</property>
|
||
<property name="styleSheet">
|
||
<string notr="true">background-color: rgb(255, 255, 255);</string>
|
||
</property>
|
||
<property name="frame">
|
||
<bool>true</bool>
|
||
</property>
|
||
<property name="placeholderText">
|
||
<string/>
|
||
</property>
|
||
<property name="cursorMoveStyle">
|
||
<enum>Qt::CursorMoveStyle::LogicalMoveStyle</enum>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="2" column="2">
|
||
<widget class="QPushButton" name="setFactor">
|
||
<property name="text">
|
||
<string>设置</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="2" column="0">
|
||
<widget class="QPushButton" name="readFactor">
|
||
<property name="text">
|
||
<string>修正系数</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="1" column="0">
|
||
<widget class="QPushButton" name="readPWM">
|
||
<property name="text">
|
||
<string>PWM波</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="1" column="1">
|
||
<widget class="QLineEdit" name="lineEdit_PWM">
|
||
<property name="styleSheet">
|
||
<string notr="true">background-color: rgb(255, 255, 255);</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="1" column="2">
|
||
<widget class="QPushButton" name="setPWM">
|
||
<property name="text">
|
||
<string>设置</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="0" column="2">
|
||
<widget class="QLineEdit" name="lineEdit_addr">
|
||
<property name="maximumSize">
|
||
<size>
|
||
<width>100</width>
|
||
<height>16777215</height>
|
||
</size>
|
||
</property>
|
||
<property name="text">
|
||
<string>1</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
</layout>
|
||
</widget>
|
||
</item>
|
||
<item>
|
||
<widget class="QGroupBox" name="groupBox">
|
||
<property name="font">
|
||
<font>
|
||
<family>宋体</family>
|
||
<pointsize>12</pointsize>
|
||
</font>
|
||
</property>
|
||
<property name="styleSheet">
|
||
<string notr="true">background-color: rgb(240, 240, 240);</string>
|
||
</property>
|
||
<property name="title">
|
||
<string>03H指令,读取数据</string>
|
||
</property>
|
||
<layout class="QGridLayout" name="gridLayout">
|
||
<item row="0" column="0" colspan="2">
|
||
<widget class="QLabel" name="label">
|
||
<property name="font">
|
||
<font>
|
||
<family>宋体</family>
|
||
<pointsize>12</pointsize>
|
||
</font>
|
||
</property>
|
||
<property name="text">
|
||
<string>485地址</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="0" column="2">
|
||
<widget class="QLabel" name="label_2">
|
||
<property name="font">
|
||
<font>
|
||
<family>宋体</family>
|
||
<pointsize>12</pointsize>
|
||
</font>
|
||
</property>
|
||
<property name="text">
|
||
<string>寄存器地址</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="0" column="3" colspan="2">
|
||
<widget class="QLabel" name="label_3">
|
||
<property name="font">
|
||
<font>
|
||
<family>宋体</family>
|
||
<pointsize>12</pointsize>
|
||
</font>
|
||
</property>
|
||
<property name="text">
|
||
<string>寄存器个数</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="0" column="5">
|
||
<widget class="QCheckBox" name="checkBox_timer">
|
||
<property name="font">
|
||
<font>
|
||
<family>宋体</family>
|
||
<pointsize>12</pointsize>
|
||
</font>
|
||
</property>
|
||
<property name="text">
|
||
<string>自动(ms)</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="1" column="0" colspan="2">
|
||
<widget class="QLineEdit" name="lineEdit_addr03">
|
||
<property name="font">
|
||
<font>
|
||
<family>宋体</family>
|
||
<pointsize>12</pointsize>
|
||
</font>
|
||
</property>
|
||
<property name="styleSheet">
|
||
<string notr="true">background-color: rgb(255, 255, 255);</string>
|
||
</property>
|
||
<property name="text">
|
||
<string>0x01</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="1" column="2">
|
||
<widget class="QLineEdit" name="lineEdit_reg03">
|
||
<property name="font">
|
||
<font>
|
||
<family>宋体</family>
|
||
<pointsize>12</pointsize>
|
||
</font>
|
||
</property>
|
||
<property name="styleSheet">
|
||
<string notr="true">background-color: rgb(255, 255, 255);</string>
|
||
</property>
|
||
<property name="text">
|
||
<string>0x0001</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="1" column="3" colspan="2">
|
||
<widget class="QLineEdit" name="lineEdit_num03">
|
||
<property name="font">
|
||
<font>
|
||
<family>宋体</family>
|
||
<pointsize>12</pointsize>
|
||
</font>
|
||
</property>
|
||
<property name="styleSheet">
|
||
<string notr="true">background-color: rgb(255, 255, 255);</string>
|
||
</property>
|
||
<property name="text">
|
||
<string>0x0002</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="1" column="5">
|
||
<widget class="QSpinBox" name="spinBox_timer">
|
||
<property name="font">
|
||
<font>
|
||
<family>宋体</family>
|
||
<pointsize>12</pointsize>
|
||
</font>
|
||
</property>
|
||
<property name="styleSheet">
|
||
<string notr="true">background-color: rgb(255, 255, 255);</string>
|
||
</property>
|
||
<property name="maximum">
|
||
<number>10000</number>
|
||
</property>
|
||
<property name="value">
|
||
<number>250</number>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="2" column="0">
|
||
<widget class="QPushButton" name="pushButton_addrUP">
|
||
<property name="font">
|
||
<font>
|
||
<family>宋体</family>
|
||
<pointsize>12</pointsize>
|
||
</font>
|
||
</property>
|
||
<property name="autoFillBackground">
|
||
<bool>false</bool>
|
||
</property>
|
||
<property name="text">
|
||
<string/>
|
||
</property>
|
||
<property name="icon">
|
||
<iconset resource="Resource.qrc">
|
||
<normaloff>:/img/image/up1.png</normaloff>:/img/image/up1.png</iconset>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="2" column="1">
|
||
<widget class="QPushButton" name="pushButton_addrDOWN">
|
||
<property name="font">
|
||
<font>
|
||
<family>宋体</family>
|
||
<pointsize>12</pointsize>
|
||
</font>
|
||
</property>
|
||
<property name="text">
|
||
<string/>
|
||
</property>
|
||
<property name="icon">
|
||
<iconset resource="Resource.qrc">
|
||
<normaloff>:/img/image/down1.png</normaloff>:/img/image/down1.png</iconset>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="2" column="2">
|
||
<widget class="QPushButton" name="pushButton_reset03">
|
||
<property name="font">
|
||
<font>
|
||
<family>宋体</family>
|
||
<pointsize>12</pointsize>
|
||
</font>
|
||
</property>
|
||
<property name="text">
|
||
<string>复位</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="2" column="3">
|
||
<widget class="QLineEdit" name="lineEdit_data03">
|
||
<property name="font">
|
||
<font>
|
||
<family>宋体</family>
|
||
<pointsize>12</pointsize>
|
||
</font>
|
||
</property>
|
||
<property name="styleSheet">
|
||
<string notr="true">background-color: rgb(255, 255, 255);</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="2" column="4">
|
||
<widget class="QLineEdit" name="lineEdit_state03">
|
||
<property name="styleSheet">
|
||
<string notr="true">background-color: rgb(255, 255, 255);</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="2" column="5">
|
||
<widget class="QPushButton" name="pushButton_read03">
|
||
<property name="font">
|
||
<font>
|
||
<family>宋体</family>
|
||
<pointsize>12</pointsize>
|
||
</font>
|
||
</property>
|
||
<property name="text">
|
||
<string>读取</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
</layout>
|
||
</widget>
|
||
</item>
|
||
<item>
|
||
<widget class="QGroupBox" name="groupBox_2">
|
||
<property name="font">
|
||
<font>
|
||
<family>宋体</family>
|
||
<pointsize>12</pointsize>
|
||
</font>
|
||
</property>
|
||
<property name="styleSheet">
|
||
<string notr="true">background-color: rgb(240, 240, 240);</string>
|
||
</property>
|
||
<property name="title">
|
||
<string>06H指令,修改地址</string>
|
||
</property>
|
||
<layout class="QGridLayout" name="gridLayout_3">
|
||
<item row="0" column="3" colspan="2">
|
||
<widget class="QLabel" name="label_4">
|
||
<property name="font">
|
||
<font>
|
||
<family>宋体</family>
|
||
<pointsize>12</pointsize>
|
||
</font>
|
||
</property>
|
||
<property name="text">
|
||
<string>寄存器地址</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="2" column="4">
|
||
<widget class="QComboBox" name="comboBox_aim">
|
||
<property name="font">
|
||
<font>
|
||
<family>宋体</family>
|
||
<pointsize>12</pointsize>
|
||
</font>
|
||
</property>
|
||
<property name="styleSheet">
|
||
<string notr="true">background-color: rgb(255, 255, 255);</string>
|
||
</property>
|
||
<item>
|
||
<property name="text">
|
||
<string>1</string>
|
||
</property>
|
||
</item>
|
||
<item>
|
||
<property name="text">
|
||
<string>2</string>
|
||
</property>
|
||
</item>
|
||
<item>
|
||
<property name="text">
|
||
<string>3</string>
|
||
</property>
|
||
</item>
|
||
<item>
|
||
<property name="text">
|
||
<string>4</string>
|
||
</property>
|
||
</item>
|
||
<item>
|
||
<property name="text">
|
||
<string>5</string>
|
||
</property>
|
||
</item>
|
||
<item>
|
||
<property name="text">
|
||
<string>6</string>
|
||
</property>
|
||
</item>
|
||
<item>
|
||
<property name="text">
|
||
<string>7</string>
|
||
</property>
|
||
</item>
|
||
<item>
|
||
<property name="text">
|
||
<string>8</string>
|
||
</property>
|
||
</item>
|
||
<item>
|
||
<property name="text">
|
||
<string>9</string>
|
||
</property>
|
||
</item>
|
||
<item>
|
||
<property name="text">
|
||
<string>10</string>
|
||
</property>
|
||
</item>
|
||
<item>
|
||
<property name="text">
|
||
<string>11</string>
|
||
</property>
|
||
</item>
|
||
<item>
|
||
<property name="text">
|
||
<string>12</string>
|
||
</property>
|
||
</item>
|
||
<item>
|
||
<property name="text">
|
||
<string>13</string>
|
||
</property>
|
||
</item>
|
||
<item>
|
||
<property name="text">
|
||
<string>14</string>
|
||
</property>
|
||
</item>
|
||
<item>
|
||
<property name="text">
|
||
<string>15</string>
|
||
</property>
|
||
</item>
|
||
<item>
|
||
<property name="text">
|
||
<string>16</string>
|
||
</property>
|
||
</item>
|
||
</widget>
|
||
</item>
|
||
<item row="1" column="3" colspan="2">
|
||
<widget class="QLineEdit" name="lineEdit_reg06">
|
||
<property name="font">
|
||
<font>
|
||
<family>宋体</family>
|
||
<pointsize>12</pointsize>
|
||
</font>
|
||
</property>
|
||
<property name="styleSheet">
|
||
<string notr="true">background-color: rgb(255, 255, 255);</string>
|
||
</property>
|
||
<property name="text">
|
||
<string>0x000F</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="1" column="0" colspan="2">
|
||
<widget class="QLineEdit" name="lineEdit_addr06">
|
||
<property name="font">
|
||
<font>
|
||
<family>宋体</family>
|
||
<pointsize>12</pointsize>
|
||
</font>
|
||
</property>
|
||
<property name="styleSheet">
|
||
<string notr="true">background-color: rgb(255, 255, 255);</string>
|
||
</property>
|
||
<property name="text">
|
||
<string>0x01</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="1" column="6">
|
||
<widget class="QPushButton" name="pushButton_send06">
|
||
<property name="font">
|
||
<font>
|
||
<family>宋体</family>
|
||
<pointsize>12</pointsize>
|
||
</font>
|
||
</property>
|
||
<property name="text">
|
||
<string>发送</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="2" column="3">
|
||
<widget class="QLabel" name="label_8">
|
||
<property name="font">
|
||
<font>
|
||
<family>宋体</family>
|
||
<pointsize>12</pointsize>
|
||
</font>
|
||
</property>
|
||
<property name="text">
|
||
<string>自增值</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="0" column="5">
|
||
<widget class="QLabel" name="label_5">
|
||
<property name="font">
|
||
<font>
|
||
<family>宋体</family>
|
||
<pointsize>12</pointsize>
|
||
</font>
|
||
</property>
|
||
<property name="text">
|
||
<string>要修改的地址</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="2" column="1">
|
||
<widget class="QComboBox" name="comboBox_current">
|
||
<property name="font">
|
||
<font>
|
||
<family>宋体</family>
|
||
<pointsize>12</pointsize>
|
||
</font>
|
||
</property>
|
||
<property name="styleSheet">
|
||
<string notr="true">background-color: rgb(255, 255, 255);</string>
|
||
</property>
|
||
<item>
|
||
<property name="text">
|
||
<string>1</string>
|
||
</property>
|
||
</item>
|
||
<item>
|
||
<property name="text">
|
||
<string>2</string>
|
||
</property>
|
||
</item>
|
||
<item>
|
||
<property name="text">
|
||
<string>3</string>
|
||
</property>
|
||
</item>
|
||
<item>
|
||
<property name="text">
|
||
<string>4</string>
|
||
</property>
|
||
</item>
|
||
<item>
|
||
<property name="text">
|
||
<string>5</string>
|
||
</property>
|
||
</item>
|
||
<item>
|
||
<property name="text">
|
||
<string>6</string>
|
||
</property>
|
||
</item>
|
||
<item>
|
||
<property name="text">
|
||
<string>7</string>
|
||
</property>
|
||
</item>
|
||
<item>
|
||
<property name="text">
|
||
<string>8</string>
|
||
</property>
|
||
</item>
|
||
<item>
|
||
<property name="text">
|
||
<string>9</string>
|
||
</property>
|
||
</item>
|
||
<item>
|
||
<property name="text">
|
||
<string>10</string>
|
||
</property>
|
||
</item>
|
||
<item>
|
||
<property name="text">
|
||
<string>11</string>
|
||
</property>
|
||
</item>
|
||
<item>
|
||
<property name="text">
|
||
<string>12</string>
|
||
</property>
|
||
</item>
|
||
<item>
|
||
<property name="text">
|
||
<string>13</string>
|
||
</property>
|
||
</item>
|
||
<item>
|
||
<property name="text">
|
||
<string>14</string>
|
||
</property>
|
||
</item>
|
||
<item>
|
||
<property name="text">
|
||
<string>15</string>
|
||
</property>
|
||
</item>
|
||
</widget>
|
||
</item>
|
||
<item row="2" column="0">
|
||
<widget class="QLabel" name="label_7">
|
||
<property name="font">
|
||
<font>
|
||
<family>宋体</family>
|
||
<pointsize>12</pointsize>
|
||
</font>
|
||
</property>
|
||
<property name="text">
|
||
<string>当前值</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="0" column="0" colspan="3">
|
||
<widget class="QLabel" name="label_6">
|
||
<property name="font">
|
||
<font>
|
||
<family>宋体</family>
|
||
<pointsize>12</pointsize>
|
||
</font>
|
||
</property>
|
||
<property name="text">
|
||
<string>485地址</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="1" column="5">
|
||
<widget class="QLineEdit" name="lineEdit_num06">
|
||
<property name="font">
|
||
<font>
|
||
<family>宋体</family>
|
||
<pointsize>12</pointsize>
|
||
</font>
|
||
</property>
|
||
<property name="styleSheet">
|
||
<string notr="true">background-color: rgb(255, 255, 255);</string>
|
||
</property>
|
||
<property name="text">
|
||
<string>0x0001</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="2" column="5">
|
||
<widget class="QCheckBox" name="checkBox_increase">
|
||
<property name="font">
|
||
<font>
|
||
<family>宋体</family>
|
||
<pointsize>12</pointsize>
|
||
</font>
|
||
</property>
|
||
<property name="text">
|
||
<string>自增</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
</layout>
|
||
</widget>
|
||
</item>
|
||
<item>
|
||
<layout class="QHBoxLayout" name="horizontalLayout_3">
|
||
<item>
|
||
<widget class="QGroupBox" name="groupBox_3">
|
||
<property name="font">
|
||
<font>
|
||
<family>宋体</family>
|
||
<pointsize>12</pointsize>
|
||
</font>
|
||
</property>
|
||
<property name="styleSheet">
|
||
<string notr="true">background-color: rgb(240, 240, 240);</string>
|
||
</property>
|
||
<property name="title">
|
||
<string>发送缓冲区</string>
|
||
</property>
|
||
<layout class="QGridLayout" name="gridLayout_5">
|
||
<item row="0" column="0">
|
||
<spacer name="horizontalSpacer">
|
||
<property name="orientation">
|
||
<enum>Qt::Orientation::Horizontal</enum>
|
||
</property>
|
||
<property name="sizeHint" stdset="0">
|
||
<size>
|
||
<width>163</width>
|
||
<height>20</height>
|
||
</size>
|
||
</property>
|
||
</spacer>
|
||
</item>
|
||
<item row="0" column="1">
|
||
<widget class="QPushButton" name="pushButton_ClearS">
|
||
<property name="text">
|
||
<string>清除</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="1" column="0" colspan="2">
|
||
<widget class="QTextEdit" name="textEdit_Send">
|
||
<property name="styleSheet">
|
||
<string notr="true">background-color: rgb(255, 255, 255);</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
</layout>
|
||
</widget>
|
||
</item>
|
||
<item>
|
||
<widget class="QGroupBox" name="groupBox_4">
|
||
<property name="font">
|
||
<font>
|
||
<family>宋体</family>
|
||
<pointsize>12</pointsize>
|
||
</font>
|
||
</property>
|
||
<property name="styleSheet">
|
||
<string notr="true">background-color: rgb(240, 240, 240);</string>
|
||
</property>
|
||
<property name="title">
|
||
<string>接收缓冲区</string>
|
||
</property>
|
||
<layout class="QGridLayout" name="gridLayout_6">
|
||
<item row="0" column="1">
|
||
<widget class="QPushButton" name="pushButton_ClearR">
|
||
<property name="text">
|
||
<string>清除</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="1" column="0" colspan="2">
|
||
<widget class="QTextEdit" name="textEdit_Receive">
|
||
<property name="styleSheet">
|
||
<string notr="true">background-color: rgb(255, 255, 255);</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="0" column="0">
|
||
<spacer name="horizontalSpacer_2">
|
||
<property name="orientation">
|
||
<enum>Qt::Orientation::Horizontal</enum>
|
||
</property>
|
||
<property name="sizeHint" stdset="0">
|
||
<size>
|
||
<width>163</width>
|
||
<height>20</height>
|
||
</size>
|
||
</property>
|
||
</spacer>
|
||
</item>
|
||
</layout>
|
||
</widget>
|
||
</item>
|
||
</layout>
|
||
</item>
|
||
</layout>
|
||
</item>
|
||
<item>
|
||
<widget class="QGroupBox" name="groupBox_6">
|
||
<property name="font">
|
||
<font>
|
||
<family>Microsoft YaHei UI</family>
|
||
<pointsize>9</pointsize>
|
||
</font>
|
||
</property>
|
||
<property name="styleSheet">
|
||
<string notr="true">background-color: rgb(240, 240, 240);</string>
|
||
</property>
|
||
<property name="title">
|
||
<string/>
|
||
</property>
|
||
<layout class="QHBoxLayout" name="horizontalLayout_2" stretch="25,1">
|
||
<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>
|
||
<layout class="QGridLayout" name="gridLayout_8">
|
||
<item row="1" column="0">
|
||
<spacer name="horizontalSpacer_3">
|
||
<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>
|
||
<item row="1" column="2">
|
||
<widget class="QPushButton" name="pButton_HorizInc">
|
||
<property name="text">
|
||
<string>放大</string>
|
||
</property>
|
||
<property name="icon">
|
||
<iconset resource="Resource.qrc">
|
||
<normaloff>:/img/image/right.png</normaloff>:/img/image/right.png</iconset>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="0" column="0" colspan="4">
|
||
<widget class="QChartView" name="graphicsView">
|
||
<property name="autoFillBackground">
|
||
<bool>true</bool>
|
||
</property>
|
||
<property name="styleSheet">
|
||
<string notr="true"/>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="1" column="1">
|
||
<widget class="QPushButton" name="pButton_HorizDec">
|
||
<property name="text">
|
||
<string>缩小</string>
|
||
</property>
|
||
<property name="icon">
|
||
<iconset resource="Resource.qrc">
|
||
<normaloff>:/img/image/left.png</normaloff>:/img/image/left.png</iconset>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="1" column="3">
|
||
<spacer name="horizontalSpacer_4">
|
||
<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="QVBoxLayout" name="verticalLayout">
|
||
<item>
|
||
<spacer name="verticalSpacer">
|
||
<property name="orientation">
|
||
<enum>Qt::Orientation::Vertical</enum>
|
||
</property>
|
||
<property name="sizeHint" stdset="0">
|
||
<size>
|
||
<width>20</width>
|
||
<height>239</height>
|
||
</size>
|
||
</property>
|
||
</spacer>
|
||
</item>
|
||
<item>
|
||
<widget class="QPushButton" name="phButton_VertitalInc">
|
||
<property name="layoutDirection">
|
||
<enum>Qt::LayoutDirection::LeftToRight</enum>
|
||
</property>
|
||
<property name="autoFillBackground">
|
||
<bool>false</bool>
|
||
</property>
|
||
<property name="text">
|
||
<string>放大</string>
|
||
</property>
|
||
<property name="icon">
|
||
<iconset resource="Resource.qrc">
|
||
<normaloff>:/img/image/up.png</normaloff>:/img/image/up.png</iconset>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item>
|
||
<widget class="QPushButton" name="phButton_VertitalDec">
|
||
<property name="text">
|
||
<string>缩小</string>
|
||
</property>
|
||
<property name="icon">
|
||
<iconset resource="Resource.qrc">
|
||
<normaloff>:/img/image/down.png</normaloff>:/img/image/down.png</iconset>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item>
|
||
<widget class="QPushButton" name="pButton_gViewClear">
|
||
<property name="text">
|
||
<string>清除</string>
|
||
</property>
|
||
</widget>
|
||
</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>233</height>
|
||
</size>
|
||
</property>
|
||
</spacer>
|
||
</item>
|
||
</layout>
|
||
</item>
|
||
</layout>
|
||
</widget>
|
||
</item>
|
||
</layout>
|
||
</widget>
|
||
<widget class="QWidget" name="tab2">
|
||
<property name="styleSheet">
|
||
<string notr="true">background-color: rgb(242, 242, 242);</string>
|
||
</property>
|
||
<attribute name="title">
|
||
<string>数据读取</string>
|
||
</attribute>
|
||
<layout class="QHBoxLayout" name="horizontalLayout_12" stretch="1,2">
|
||
<item>
|
||
<layout class="QVBoxLayout" name="verticalLayout_3">
|
||
<item>
|
||
<layout class="QGridLayout" name="gridLayout_2">
|
||
<item row="0" column="0">
|
||
<widget class="QPushButton" name="pushButton_25">
|
||
<property name="font">
|
||
<font>
|
||
<family>宋体</family>
|
||
<pointsize>16</pointsize>
|
||
</font>
|
||
</property>
|
||
<property name="styleSheet">
|
||
<string notr="true">background-color: rgb(255, 255, 255);
|
||
selection-background-color: rgb(85, 85, 255);
|
||
selection-color: rgb(255, 0, 0);
|
||
gridline-color: rgb(170, 0, 127);</string>
|
||
</property>
|
||
<property name="text">
|
||
<string>modbus地址</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="1" column="0">
|
||
<widget class="QPushButton" name="pushButton">
|
||
<property name="font">
|
||
<font>
|
||
<family>宋体</family>
|
||
<pointsize>16</pointsize>
|
||
</font>
|
||
</property>
|
||
<property name="styleSheet">
|
||
<string notr="true">background-color: rgb(255, 255, 255);</string>
|
||
</property>
|
||
<property name="text">
|
||
<string>传感器数据</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="1" column="1">
|
||
<widget class="QLineEdit" name="lineEdit_r2">
|
||
<property name="font">
|
||
<font>
|
||
<family>宋体</family>
|
||
<pointsize>16</pointsize>
|
||
</font>
|
||
</property>
|
||
<property name="styleSheet">
|
||
<string notr="true">background-color: rgb(255, 255, 255);</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="2" column="0">
|
||
<widget class="QPushButton" name="pushButton_2">
|
||
<property name="font">
|
||
<font>
|
||
<family>宋体</family>
|
||
<pointsize>16</pointsize>
|
||
</font>
|
||
</property>
|
||
<property name="styleSheet">
|
||
<string notr="true">background-color: rgb(255, 255, 255);</string>
|
||
</property>
|
||
<property name="text">
|
||
<string>投退状态</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="2" column="1">
|
||
<widget class="QLineEdit" name="lineEdit_r3">
|
||
<property name="font">
|
||
<font>
|
||
<family>宋体</family>
|
||
<pointsize>16</pointsize>
|
||
</font>
|
||
</property>
|
||
<property name="layoutDirection">
|
||
<enum>Qt::LayoutDirection::RightToLeft</enum>
|
||
</property>
|
||
<property name="styleSheet">
|
||
<string notr="true">background-color: rgb(255, 255, 255);</string>
|
||
</property>
|
||
<property name="text">
|
||
<string/>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="3" column="0">
|
||
<widget class="QPushButton" name="pushButton_3">
|
||
<property name="font">
|
||
<font>
|
||
<family>宋体</family>
|
||
<pointsize>16</pointsize>
|
||
</font>
|
||
</property>
|
||
<property name="styleSheet">
|
||
<string notr="true">background-color: rgb(255, 255, 255);</string>
|
||
</property>
|
||
<property name="text">
|
||
<string>电机状态</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="3" column="1">
|
||
<widget class="QLineEdit" name="lineEdit_r4">
|
||
<property name="font">
|
||
<font>
|
||
<family>宋体</family>
|
||
<pointsize>16</pointsize>
|
||
</font>
|
||
</property>
|
||
<property name="styleSheet">
|
||
<string notr="true">background-color: rgb(255, 255, 255);</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="4" column="0">
|
||
<widget class="QPushButton" name="pushButton_4">
|
||
<property name="font">
|
||
<font>
|
||
<family>宋体</family>
|
||
<pointsize>16</pointsize>
|
||
</font>
|
||
</property>
|
||
<property name="styleSheet">
|
||
<string notr="true">background-color: rgb(255, 255, 255);</string>
|
||
</property>
|
||
<property name="text">
|
||
<string>PWM占空比</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="4" column="1">
|
||
<widget class="QLineEdit" name="lineEdit_r5">
|
||
<property name="font">
|
||
<font>
|
||
<family>宋体</family>
|
||
<pointsize>16</pointsize>
|
||
</font>
|
||
</property>
|
||
<property name="styleSheet">
|
||
<string notr="true">background-color: rgb(255, 255, 255);</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="4" column="2">
|
||
<widget class="QPushButton" name="pushButton_setPWM">
|
||
<property name="font">
|
||
<font>
|
||
<family>宋体</family>
|
||
<pointsize>16</pointsize>
|
||
</font>
|
||
</property>
|
||
<property name="styleSheet">
|
||
<string notr="true">background-color: rgb(255, 255, 255);</string>
|
||
</property>
|
||
<property name="text">
|
||
<string>设置</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="5" column="0">
|
||
<widget class="QPushButton" name="pushButton_5">
|
||
<property name="font">
|
||
<font>
|
||
<family>宋体</family>
|
||
<pointsize>16</pointsize>
|
||
</font>
|
||
</property>
|
||
<property name="styleSheet">
|
||
<string notr="true">background-color: rgb(255, 255, 255);</string>
|
||
</property>
|
||
<property name="text">
|
||
<string>缩放系数</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="5" column="1">
|
||
<widget class="QLineEdit" name="lineEdit_r6">
|
||
<property name="font">
|
||
<font>
|
||
<family>宋体</family>
|
||
<pointsize>16</pointsize>
|
||
</font>
|
||
</property>
|
||
<property name="styleSheet">
|
||
<string notr="true">background-color: rgb(255, 255, 255);</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="5" column="2">
|
||
<widget class="QPushButton" name="pushButton_21">
|
||
<property name="font">
|
||
<font>
|
||
<family>宋体</family>
|
||
<pointsize>16</pointsize>
|
||
</font>
|
||
</property>
|
||
<property name="styleSheet">
|
||
<string notr="true">background-color: rgb(255, 255, 255);</string>
|
||
</property>
|
||
<property name="text">
|
||
<string>设置</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="6" column="0">
|
||
<widget class="QPushButton" name="pushButton_6">
|
||
<property name="enabled">
|
||
<bool>true</bool>
|
||
</property>
|
||
<property name="font">
|
||
<font>
|
||
<family>宋体</family>
|
||
<pointsize>16</pointsize>
|
||
</font>
|
||
</property>
|
||
<property name="styleSheet">
|
||
<string notr="true">background-color: rgb(255, 255, 255);</string>
|
||
</property>
|
||
<property name="text">
|
||
<string>加减系数</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="6" column="1">
|
||
<widget class="QLineEdit" name="lineEdit_r7">
|
||
<property name="font">
|
||
<font>
|
||
<family>宋体</family>
|
||
<pointsize>16</pointsize>
|
||
</font>
|
||
</property>
|
||
<property name="styleSheet">
|
||
<string notr="true">background-color: rgb(255, 255, 255);</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="6" column="2">
|
||
<widget class="QPushButton" name="pushButton_22">
|
||
<property name="font">
|
||
<font>
|
||
<family>宋体</family>
|
||
<pointsize>16</pointsize>
|
||
</font>
|
||
</property>
|
||
<property name="styleSheet">
|
||
<string notr="true">background-color: rgb(255, 255, 255);</string>
|
||
</property>
|
||
<property name="text">
|
||
<string>设置</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="7" column="0">
|
||
<widget class="QPushButton" name="pushButton_7">
|
||
<property name="font">
|
||
<font>
|
||
<family>宋体</family>
|
||
<pointsize>16</pointsize>
|
||
</font>
|
||
</property>
|
||
<property name="styleSheet">
|
||
<string notr="true">background-color: rgb(255, 255, 255);</string>
|
||
</property>
|
||
<property name="text">
|
||
<string>电机运行时间</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="7" column="1">
|
||
<widget class="QLineEdit" name="lineEdit_r8">
|
||
<property name="font">
|
||
<font>
|
||
<family>宋体</family>
|
||
<pointsize>16</pointsize>
|
||
</font>
|
||
</property>
|
||
<property name="styleSheet">
|
||
<string notr="true">background-color: rgb(255, 255, 255);</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="7" column="2">
|
||
<widget class="QPushButton" name="pushButton_16">
|
||
<property name="font">
|
||
<font>
|
||
<family>宋体</family>
|
||
<pointsize>16</pointsize>
|
||
</font>
|
||
</property>
|
||
<property name="styleSheet">
|
||
<string notr="true">background-color: rgb(255, 255, 255);</string>
|
||
</property>
|
||
<property name="text">
|
||
<string>设置</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="8" column="0">
|
||
<widget class="QPushButton" name="pushButton_8">
|
||
<property name="font">
|
||
<font>
|
||
<family>宋体</family>
|
||
<pointsize>16</pointsize>
|
||
</font>
|
||
</property>
|
||
<property name="styleSheet">
|
||
<string notr="true">background-color: rgb(255, 255, 255);</string>
|
||
</property>
|
||
<property name="text">
|
||
<string>波特率</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="8" column="1">
|
||
<widget class="QLineEdit" name="lineEdit_r9">
|
||
<property name="font">
|
||
<font>
|
||
<family>宋体</family>
|
||
<pointsize>16</pointsize>
|
||
</font>
|
||
</property>
|
||
<property name="styleSheet">
|
||
<string notr="true">background-color: rgb(255, 255, 255);</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="8" column="2">
|
||
<widget class="QPushButton" name="pushButton_15">
|
||
<property name="font">
|
||
<font>
|
||
<family>宋体</family>
|
||
<pointsize>16</pointsize>
|
||
</font>
|
||
</property>
|
||
<property name="styleSheet">
|
||
<string notr="true">background-color: rgb(255, 255, 255);</string>
|
||
</property>
|
||
<property name="text">
|
||
<string>设置</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="9" column="0">
|
||
<widget class="QPushButton" name="pushButton_27">
|
||
<property name="font">
|
||
<font>
|
||
<family>宋体</family>
|
||
<pointsize>16</pointsize>
|
||
</font>
|
||
</property>
|
||
<property name="styleSheet">
|
||
<string notr="true">background-color: rgb(255, 255, 255);</string>
|
||
</property>
|
||
<property name="text">
|
||
<string>温度</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="9" column="1">
|
||
<widget class="QLineEdit" name="lineEdit_r10">
|
||
<property name="font">
|
||
<font>
|
||
<family>宋体</family>
|
||
<pointsize>16</pointsize>
|
||
</font>
|
||
</property>
|
||
<property name="styleSheet">
|
||
<string notr="true">background-color: rgb(255, 255, 255);</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="10" column="0">
|
||
<widget class="QPushButton" name="pushButton_29">
|
||
<property name="font">
|
||
<font>
|
||
<family>宋体</family>
|
||
<pointsize>16</pointsize>
|
||
</font>
|
||
</property>
|
||
<property name="styleSheet">
|
||
<string notr="true">background-color: rgb(255, 255, 255);</string>
|
||
</property>
|
||
<property name="text">
|
||
<string>湿度</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="10" column="1">
|
||
<widget class="QLineEdit" name="lineEdit_r11">
|
||
<property name="font">
|
||
<font>
|
||
<family>宋体</family>
|
||
<pointsize>16</pointsize>
|
||
</font>
|
||
</property>
|
||
<property name="styleSheet">
|
||
<string notr="true">background-color: rgb(255, 255, 255);</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="11" column="0">
|
||
<widget class="QPushButton" name="pushButton_9">
|
||
<property name="font">
|
||
<font>
|
||
<family>宋体</family>
|
||
<pointsize>16</pointsize>
|
||
</font>
|
||
</property>
|
||
<property name="styleSheet">
|
||
<string notr="true">background-color: rgb(255, 255, 255);</string>
|
||
</property>
|
||
<property name="text">
|
||
<string>方波判断阈值</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="11" column="1">
|
||
<widget class="QLineEdit" name="lineEdit_r12">
|
||
<property name="font">
|
||
<font>
|
||
<family>宋体</family>
|
||
<pointsize>16</pointsize>
|
||
</font>
|
||
</property>
|
||
<property name="styleSheet">
|
||
<string notr="true">background-color: rgb(255, 255, 255);</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="11" column="2">
|
||
<widget class="QPushButton" name="pushButton_estimate">
|
||
<property name="font">
|
||
<font>
|
||
<family>宋体</family>
|
||
<pointsize>16</pointsize>
|
||
</font>
|
||
</property>
|
||
<property name="styleSheet">
|
||
<string notr="true">background-color: rgb(255, 255, 255);</string>
|
||
</property>
|
||
<property name="text">
|
||
<string>设置</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="12" column="0">
|
||
<widget class="QPushButton" name="pushButton_10">
|
||
<property name="font">
|
||
<font>
|
||
<family>宋体</family>
|
||
<pointsize>16</pointsize>
|
||
</font>
|
||
</property>
|
||
<property name="styleSheet">
|
||
<string notr="true">background-color: rgb(255, 255, 255);</string>
|
||
</property>
|
||
<property name="text">
|
||
<string>投退下限阈值</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="12" column="1">
|
||
<widget class="QLineEdit" name="lineEdit_r13">
|
||
<property name="font">
|
||
<font>
|
||
<family>宋体</family>
|
||
<pointsize>16</pointsize>
|
||
</font>
|
||
</property>
|
||
<property name="styleSheet">
|
||
<string notr="true">background-color: rgb(255, 255, 255);</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="12" column="2">
|
||
<widget class="QPushButton" name="pushButton_17">
|
||
<property name="font">
|
||
<font>
|
||
<family>宋体</family>
|
||
<pointsize>16</pointsize>
|
||
</font>
|
||
</property>
|
||
<property name="styleSheet">
|
||
<string notr="true">background-color: rgb(255, 255, 255);</string>
|
||
</property>
|
||
<property name="text">
|
||
<string>设置</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="13" column="0">
|
||
<widget class="QPushButton" name="pushButton_11">
|
||
<property name="font">
|
||
<font>
|
||
<family>宋体</family>
|
||
<pointsize>16</pointsize>
|
||
</font>
|
||
</property>
|
||
<property name="styleSheet">
|
||
<string notr="true">background-color: rgb(255, 255, 255);</string>
|
||
</property>
|
||
<property name="text">
|
||
<string>电压读取/校准</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="13" column="1">
|
||
<widget class="QLineEdit" name="lineEdit_r14">
|
||
<property name="font">
|
||
<font>
|
||
<family>宋体</family>
|
||
<pointsize>16</pointsize>
|
||
</font>
|
||
</property>
|
||
<property name="styleSheet">
|
||
<string notr="true">background-color: rgb(255, 255, 255);</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="13" column="2">
|
||
<widget class="QPushButton" name="pushButton_18">
|
||
<property name="font">
|
||
<font>
|
||
<family>宋体</family>
|
||
<pointsize>16</pointsize>
|
||
</font>
|
||
</property>
|
||
<property name="styleSheet">
|
||
<string notr="true">background-color: rgb(255, 255, 255);</string>
|
||
</property>
|
||
<property name="text">
|
||
<string>校准</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="14" column="0">
|
||
<widget class="QPushButton" name="pushButton_12">
|
||
<property name="font">
|
||
<font>
|
||
<family>宋体</family>
|
||
<pointsize>16</pointsize>
|
||
</font>
|
||
</property>
|
||
<property name="styleSheet">
|
||
<string notr="true">background-color: rgb(255, 255, 255);</string>
|
||
</property>
|
||
<property name="text">
|
||
<string>电压阈值</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="14" column="1">
|
||
<widget class="QLineEdit" name="lineEdit_r15">
|
||
<property name="font">
|
||
<font>
|
||
<family>宋体</family>
|
||
<pointsize>16</pointsize>
|
||
</font>
|
||
</property>
|
||
<property name="styleSheet">
|
||
<string notr="true">background-color: rgb(255, 255, 255);</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="14" column="2">
|
||
<widget class="QPushButton" name="pushButton_20">
|
||
<property name="font">
|
||
<font>
|
||
<family>宋体</family>
|
||
<pointsize>16</pointsize>
|
||
</font>
|
||
</property>
|
||
<property name="styleSheet">
|
||
<string notr="true">background-color: rgb(255, 255, 255);</string>
|
||
</property>
|
||
<property name="text">
|
||
<string>设置</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="0" column="1">
|
||
<widget class="QSpinBox" name="spinBox_addr">
|
||
<property name="minimumSize">
|
||
<size>
|
||
<width>0</width>
|
||
<height>29</height>
|
||
</size>
|
||
</property>
|
||
<property name="font">
|
||
<font>
|
||
<family>宋体</family>
|
||
<pointsize>16</pointsize>
|
||
</font>
|
||
</property>
|
||
<property name="minimum">
|
||
<number>1</number>
|
||
</property>
|
||
<property name="maximum">
|
||
<number>999</number>
|
||
</property>
|
||
<property name="value">
|
||
<number>1</number>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
</layout>
|
||
</item>
|
||
<item>
|
||
<layout class="QHBoxLayout" name="horizontalLayout_5">
|
||
<item>
|
||
<layout class="QGridLayout" name="gridLayout_7">
|
||
<item row="1" column="0">
|
||
<widget class="QCheckBox" name="checkBox">
|
||
<property name="font">
|
||
<font>
|
||
<family>宋体</family>
|
||
<pointsize>16</pointsize>
|
||
</font>
|
||
</property>
|
||
<property name="layoutDirection">
|
||
<enum>Qt::LayoutDirection::RightToLeft</enum>
|
||
</property>
|
||
<property name="styleSheet">
|
||
<string notr="true">background-color: rgb(255, 255, 255);</string>
|
||
</property>
|
||
<property name="text">
|
||
<string>自动(ms)</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="0" column="0">
|
||
<widget class="QPushButton" name="pushButton_readonce">
|
||
<property name="font">
|
||
<font>
|
||
<family>宋体</family>
|
||
<pointsize>16</pointsize>
|
||
</font>
|
||
</property>
|
||
<property name="styleSheet">
|
||
<string notr="true">background-color: rgb(255, 255, 255);</string>
|
||
</property>
|
||
<property name="text">
|
||
<string>单次读取</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="1" column="1">
|
||
<widget class="QSpinBox" name="spinBox_timer_2">
|
||
<property name="font">
|
||
<font>
|
||
<family>宋体</family>
|
||
<pointsize>16</pointsize>
|
||
</font>
|
||
</property>
|
||
<property name="focusPolicy">
|
||
<enum>Qt::FocusPolicy::StrongFocus</enum>
|
||
</property>
|
||
<property name="layoutDirection">
|
||
<enum>Qt::LayoutDirection::LeftToRight</enum>
|
||
</property>
|
||
<property name="autoFillBackground">
|
||
<bool>true</bool>
|
||
</property>
|
||
<property name="styleSheet">
|
||
<string notr="true">background-color: rgb(255, 255, 255);</string>
|
||
</property>
|
||
<property name="buttonSymbols">
|
||
<enum>QAbstractSpinBox::ButtonSymbols::UpDownArrows</enum>
|
||
</property>
|
||
<property name="maximum">
|
||
<number>10000</number>
|
||
</property>
|
||
<property name="value">
|
||
<number>250</number>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
</layout>
|
||
</item>
|
||
</layout>
|
||
</item>
|
||
</layout>
|
||
</item>
|
||
<item>
|
||
<layout class="QVBoxLayout" name="verticalLayout_7" stretch="3,1">
|
||
<item>
|
||
<layout class="QGridLayout" name="gridLayout_17">
|
||
<item row="0" column="0" rowspan="11">
|
||
<widget class="QChartView" name="graphicsView_2">
|
||
<property name="autoFillBackground">
|
||
<bool>true</bool>
|
||
</property>
|
||
<property name="styleSheet">
|
||
<string notr="true">background-color: rgb(242, 242, 242);</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="0" column="1">
|
||
<widget class="QCheckBox" name="checkBox_data">
|
||
<property name="font">
|
||
<font>
|
||
<family>宋体</family>
|
||
<pointsize>16</pointsize>
|
||
</font>
|
||
</property>
|
||
<property name="layoutDirection">
|
||
<enum>Qt::LayoutDirection::LeftToRight</enum>
|
||
</property>
|
||
<property name="styleSheet">
|
||
<string notr="true">background-color: rgb(255, 255, 255);</string>
|
||
</property>
|
||
<property name="text">
|
||
<string>数据</string>
|
||
</property>
|
||
<property name="checked">
|
||
<bool>true</bool>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="1" column="1">
|
||
<widget class="QCheckBox" name="checkBox_state">
|
||
<property name="font">
|
||
<font>
|
||
<family>宋体</family>
|
||
<pointsize>16</pointsize>
|
||
</font>
|
||
</property>
|
||
<property name="layoutDirection">
|
||
<enum>Qt::LayoutDirection::LeftToRight</enum>
|
||
</property>
|
||
<property name="styleSheet">
|
||
<string notr="true">background-color: rgb(255, 255, 255);</string>
|
||
</property>
|
||
<property name="text">
|
||
<string>投退状态</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="2" column="1">
|
||
<widget class="QCheckBox" name="checkBox_temp">
|
||
<property name="font">
|
||
<font>
|
||
<family>宋体</family>
|
||
<pointsize>16</pointsize>
|
||
</font>
|
||
</property>
|
||
<property name="layoutDirection">
|
||
<enum>Qt::LayoutDirection::LeftToRight</enum>
|
||
</property>
|
||
<property name="styleSheet">
|
||
<string notr="true">background-color: rgb(255, 255, 255);</string>
|
||
</property>
|
||
<property name="text">
|
||
<string>温度</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="3" column="1">
|
||
<widget class="QCheckBox" name="checkBox_humi">
|
||
<property name="font">
|
||
<font>
|
||
<family>宋体</family>
|
||
<pointsize>16</pointsize>
|
||
</font>
|
||
</property>
|
||
<property name="layoutDirection">
|
||
<enum>Qt::LayoutDirection::LeftToRight</enum>
|
||
</property>
|
||
<property name="styleSheet">
|
||
<string notr="true">background-color: rgb(255, 255, 255);</string>
|
||
</property>
|
||
<property name="text">
|
||
<string>湿度</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="4" column="1">
|
||
<widget class="QCheckBox" name="checkBox_voltage">
|
||
<property name="font">
|
||
<font>
|
||
<family>宋体</family>
|
||
<pointsize>16</pointsize>
|
||
</font>
|
||
</property>
|
||
<property name="layoutDirection">
|
||
<enum>Qt::LayoutDirection::LeftToRight</enum>
|
||
</property>
|
||
<property name="styleSheet">
|
||
<string notr="true">background-color: rgb(255, 255, 255);</string>
|
||
</property>
|
||
<property name="text">
|
||
<string>电压</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="5" column="1">
|
||
<spacer name="verticalSpacer_3">
|
||
<property name="orientation">
|
||
<enum>Qt::Orientation::Vertical</enum>
|
||
</property>
|
||
<property name="sizeHint" stdset="0">
|
||
<size>
|
||
<width>20</width>
|
||
<height>40</height>
|
||
</size>
|
||
</property>
|
||
</spacer>
|
||
</item>
|
||
<item row="6" column="1">
|
||
<widget class="QPushButton" name="pushButton_Ysmall">
|
||
<property name="enabled">
|
||
<bool>true</bool>
|
||
</property>
|
||
<property name="font">
|
||
<font>
|
||
<family>宋体</family>
|
||
<pointsize>16</pointsize>
|
||
</font>
|
||
</property>
|
||
<property name="styleSheet">
|
||
<string notr="true">background-color: rgb(255, 255, 255);</string>
|
||
</property>
|
||
<property name="text">
|
||
<string>Y轴缩小</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="7" column="1">
|
||
<widget class="QPushButton" name="pushButton_Ylargr">
|
||
<property name="enabled">
|
||
<bool>true</bool>
|
||
</property>
|
||
<property name="font">
|
||
<font>
|
||
<family>宋体</family>
|
||
<pointsize>16</pointsize>
|
||
</font>
|
||
</property>
|
||
<property name="styleSheet">
|
||
<string notr="true">background-color: rgb(255, 255, 255);</string>
|
||
</property>
|
||
<property name="text">
|
||
<string>Y轴放大</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="8" column="1">
|
||
<widget class="QPushButton" name="pushButton_Xsmall">
|
||
<property name="enabled">
|
||
<bool>true</bool>
|
||
</property>
|
||
<property name="font">
|
||
<font>
|
||
<family>宋体</family>
|
||
<pointsize>16</pointsize>
|
||
</font>
|
||
</property>
|
||
<property name="styleSheet">
|
||
<string notr="true">background-color: rgb(255, 255, 255);</string>
|
||
</property>
|
||
<property name="text">
|
||
<string>X轴缩小</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="9" column="1">
|
||
<widget class="QPushButton" name="pushButton_Xlargr">
|
||
<property name="enabled">
|
||
<bool>true</bool>
|
||
</property>
|
||
<property name="font">
|
||
<font>
|
||
<family>宋体</family>
|
||
<pointsize>16</pointsize>
|
||
</font>
|
||
</property>
|
||
<property name="styleSheet">
|
||
<string notr="true">background-color: rgb(255, 255, 255);</string>
|
||
</property>
|
||
<property name="text">
|
||
<string>x轴放大</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="10" column="1">
|
||
<widget class="QPushButton" name="pushButton_chartclear">
|
||
<property name="enabled">
|
||
<bool>true</bool>
|
||
</property>
|
||
<property name="font">
|
||
<font>
|
||
<family>宋体</family>
|
||
<pointsize>16</pointsize>
|
||
</font>
|
||
</property>
|
||
<property name="styleSheet">
|
||
<string notr="true">background-color: rgb(255, 255, 255);</string>
|
||
</property>
|
||
<property name="text">
|
||
<string> 清除 </string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
</layout>
|
||
</item>
|
||
<item>
|
||
<layout class="QHBoxLayout" name="horizontalLayout_6">
|
||
<item>
|
||
<widget class="QTextEdit" name="textEdit_RxTx">
|
||
<property name="styleSheet">
|
||
<string notr="true">background-color: rgb(242, 242, 242);
|
||
background-color: rgb(255, 255, 255);</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item>
|
||
<widget class="QPushButton" name="pushButton_clear2">
|
||
<property name="enabled">
|
||
<bool>true</bool>
|
||
</property>
|
||
<property name="font">
|
||
<font>
|
||
<family>宋体</family>
|
||
<pointsize>16</pointsize>
|
||
</font>
|
||
</property>
|
||
<property name="styleSheet">
|
||
<string notr="true">background-color: rgb(255, 255, 255);</string>
|
||
</property>
|
||
<property name="text">
|
||
<string> 清除 </string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
</layout>
|
||
</item>
|
||
</layout>
|
||
</item>
|
||
</layout>
|
||
</widget>
|
||
<widget class="QWidget" name="tab">
|
||
<attribute name="title">
|
||
<string>升级</string>
|
||
</attribute>
|
||
<widget class="QGroupBox" name="groupBox_7">
|
||
<property name="geometry">
|
||
<rect>
|
||
<x>10</x>
|
||
<y>80</y>
|
||
<width>891</width>
|
||
<height>91</height>
|
||
</rect>
|
||
</property>
|
||
<property name="title">
|
||
<string>GroupBox</string>
|
||
</property>
|
||
<widget class="QRadioButton" name="guangbo_rBtn">
|
||
<property name="geometry">
|
||
<rect>
|
||
<x>20</x>
|
||
<y>20</y>
|
||
<width>131</width>
|
||
<height>30</height>
|
||
</rect>
|
||
</property>
|
||
<property name="font">
|
||
<font>
|
||
<pointsize>16</pointsize>
|
||
</font>
|
||
</property>
|
||
<property name="text">
|
||
<string>广播传输</string>
|
||
</property>
|
||
</widget>
|
||
<widget class="QWidget" name="layoutWidget">
|
||
<property name="geometry">
|
||
<rect>
|
||
<x>21</x>
|
||
<y>47</y>
|
||
<width>511</width>
|
||
<height>33</height>
|
||
</rect>
|
||
</property>
|
||
<layout class="QHBoxLayout" name="horizontalLayout_7">
|
||
<item>
|
||
<widget class="QRadioButton" name="danbo_rBtn">
|
||
<property name="font">
|
||
<font>
|
||
<pointsize>16</pointsize>
|
||
</font>
|
||
</property>
|
||
<property name="tabletTracking">
|
||
<bool>false</bool>
|
||
</property>
|
||
<property name="text">
|
||
<string>指定传输</string>
|
||
</property>
|
||
<property name="checked">
|
||
<bool>true</bool>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item>
|
||
<spacer name="horizontalSpacer_5">
|
||
<property name="orientation">
|
||
<enum>Qt::Orientation::Horizontal</enum>
|
||
</property>
|
||
<property name="sizeHint" stdset="0">
|
||
<size>
|
||
<width>13</width>
|
||
<height>17</height>
|
||
</size>
|
||
</property>
|
||
</spacer>
|
||
</item>
|
||
<item>
|
||
<widget class="QLabel" name="label_9">
|
||
<property name="font">
|
||
<font>
|
||
<pointsize>16</pointsize>
|
||
</font>
|
||
</property>
|
||
<property name="text">
|
||
<string>起始地址</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item>
|
||
<widget class="QSpinBox" name="start_spinBox">
|
||
<property name="font">
|
||
<font>
|
||
<pointsize>16</pointsize>
|
||
</font>
|
||
</property>
|
||
<property name="minimum">
|
||
<number>1</number>
|
||
</property>
|
||
<property name="maximum">
|
||
<number>255</number>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item>
|
||
<widget class="QLabel" name="label_10">
|
||
<property name="font">
|
||
<font>
|
||
<pointsize>16</pointsize>
|
||
</font>
|
||
</property>
|
||
<property name="text">
|
||
<string>终止地址</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item>
|
||
<widget class="QSpinBox" name="end_spinBox">
|
||
<property name="font">
|
||
<font>
|
||
<pointsize>16</pointsize>
|
||
</font>
|
||
</property>
|
||
<property name="minimum">
|
||
<number>1</number>
|
||
</property>
|
||
<property name="maximum">
|
||
<number>255</number>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
</layout>
|
||
</widget>
|
||
<widget class="QPushButton" name="clear3_Btn">
|
||
<property name="geometry">
|
||
<rect>
|
||
<x>560</x>
|
||
<y>50</y>
|
||
<width>75</width>
|
||
<height>31</height>
|
||
</rect>
|
||
</property>
|
||
<property name="text">
|
||
<string>清除</string>
|
||
</property>
|
||
</widget>
|
||
</widget>
|
||
<widget class="QTextEdit" name="SendFile_textEdit">
|
||
<property name="geometry">
|
||
<rect>
|
||
<x>10</x>
|
||
<y>180</y>
|
||
<width>891</width>
|
||
<height>461</height>
|
||
</rect>
|
||
</property>
|
||
<property name="tabletTracking">
|
||
<bool>false</bool>
|
||
</property>
|
||
<property name="frameShadow">
|
||
<enum>QFrame::Shadow::Sunken</enum>
|
||
</property>
|
||
</widget>
|
||
<widget class="QWidget" name="layoutWidget">
|
||
<property name="geometry">
|
||
<rect>
|
||
<x>10</x>
|
||
<y>10</y>
|
||
<width>891</width>
|
||
<height>56</height>
|
||
</rect>
|
||
</property>
|
||
<layout class="QGridLayout" name="gridLayout_9">
|
||
<item row="0" column="1">
|
||
<widget class="QLineEdit" name="fileName_LEdit"/>
|
||
</item>
|
||
<item row="1" column="0">
|
||
<widget class="QPushButton" name="SenFile_Btn">
|
||
<property name="text">
|
||
<string>发送文件</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="1" column="1">
|
||
<widget class="QProgressBar" name="progressBar">
|
||
<property name="value">
|
||
<number>0</number>
|
||
</property>
|
||
<property name="textVisible">
|
||
<bool>true</bool>
|
||
</property>
|
||
<property name="format">
|
||
<string>%p%</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="0" column="0">
|
||
<widget class="QPushButton" name="OpenFile_Btn">
|
||
<property name="text">
|
||
<string>打开文件</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="1" column="2">
|
||
<widget class="QPushButton" name="overSend_Btn">
|
||
<property name="text">
|
||
<string>结束发送</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
</layout>
|
||
</widget>
|
||
</widget>
|
||
</widget>
|
||
</item>
|
||
</layout>
|
||
</widget>
|
||
<widget class="QStatusBar" name="statusbar"/>
|
||
<widget class="QToolBar" name="toolBar">
|
||
<property name="windowTitle">
|
||
<string>toolBar</string>
|
||
</property>
|
||
<property name="toolButtonStyle">
|
||
<enum>Qt::ToolButtonStyle::ToolButtonTextUnderIcon</enum>
|
||
</property>
|
||
<attribute name="toolBarArea">
|
||
<enum>LeftToolBarArea</enum>
|
||
</attribute>
|
||
<attribute name="toolBarBreak">
|
||
<bool>false</bool>
|
||
</attribute>
|
||
<addaction name="setSerilport"/>
|
||
<addaction name="separator"/>
|
||
<addaction name="fileSet"/>
|
||
<addaction name="separator"/>
|
||
<addaction name="help_action"/>
|
||
<addaction name="separator"/>
|
||
</widget>
|
||
<action name="setSerilport">
|
||
<property name="icon">
|
||
<iconset resource="Resource.qrc">
|
||
<normaloff>:/img/image/setting.ico</normaloff>:/img/image/setting.ico</iconset>
|
||
</property>
|
||
<property name="text">
|
||
<string>串口设置</string>
|
||
</property>
|
||
</action>
|
||
<action name="fileSet">
|
||
<property name="icon">
|
||
<iconset resource="Resource.qrc">
|
||
<normaloff>:/img/image/fileSet.png</normaloff>:/img/image/fileSet.png</iconset>
|
||
</property>
|
||
<property name="text">
|
||
<string>文件设置</string>
|
||
</property>
|
||
</action>
|
||
<action name="help_action">
|
||
<property name="icon">
|
||
<iconset resource="Resource.qrc">
|
||
<normaloff>:/img/image/help.png</normaloff>:/img/image/help.png</iconset>
|
||
</property>
|
||
<property name="text">
|
||
<string>帮助</string>
|
||
</property>
|
||
</action>
|
||
</widget>
|
||
<customwidgets>
|
||
<customwidget>
|
||
<class>QChartView</class>
|
||
<extends>QGraphicsView</extends>
|
||
<header location="global">qchartview.h</header>
|
||
</customwidget>
|
||
</customwidgets>
|
||
<resources>
|
||
<include location="Resource.qrc"/>
|
||
</resources>
|
||
<connections/>
|
||
</ui>
|