代码拉取完成,页面将自动刷新
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>Main_windw</class>
<widget class="QMainWindow" name="Main_windw">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>1468</width>
<height>1200</height>
</rect>
</property>
<property name="minimumSize">
<size>
<width>800</width>
<height>850</height>
</size>
</property>
<property name="windowTitle">
<string>远程串口通讯工具</string>
</property>
<property name="styleSheet">
<string notr="true">font: 75 10pt "微软雅黑";</string>
</property>
<widget class="QWidget" name="centralwidget">
<layout class="QGridLayout" name="gridLayout_4">
<item row="0" column="1" rowspan="4">
<widget class="QGroupBox" name="groupBox">
<property name="styleSheet">
<string notr="true">font: 75 10pt "微软雅黑";</string>
</property>
<property name="title">
<string/>
</property>
<layout class="QGridLayout" name="gridLayout_3">
<item row="2" column="0">
<widget class="QGroupBox" name="groupBox_7">
<property name="enabled">
<bool>true</bool>
</property>
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="title">
<string/>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<widget class="QGroupBox" name="groupBox_server">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Maximum">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="toolTip">
<string/>
</property>
<property name="title">
<string>服务器</string>
</property>
<layout class="QHBoxLayout" name="horizontalLayout_9">
<item>
<widget class="QLabel" name="label_4">
<property name="text">
<string>对方主机地址:</string>
</property>
</widget>
</item>
<item>
<widget class="QLineEdit" name="lineEdit_tcp_client_ip">
<property name="toolTip">
<string>输入对方主机的IPV4地址</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="pushButton_connect_server">
<property name="toolTip">
<string>点击连接服务器</string>
</property>
<property name="text">
<string>连接</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_6">
<property name="text">
<string>状态:</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_tcpstateshow">
<property name="text">
<string>未连接</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_ico">
<property name="text">
<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>
<item>
<widget class="QCheckBox" name="checkBox_hex_recv">
<property name="text">
<string>接收HEX</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="checkBox_ascii_recv">
<property name="text">
<string>接收ASCII</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="pushButton">
<property name="toolTip">
<string>点击清空接收区</string>
</property>
<property name="text">
<string>清除接收</string>
</property>
</widget>
</item>
<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>20</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QPushButton" name="pushButton_2">
<property name="toolTip">
<string>点击清空发送区</string>
</property>
<property name="text">
<string>清除发送</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QGroupBox" name="groupBox_4">
<property name="title">
<string>收到的数据</string>
</property>
<layout class="QGridLayout" name="gridLayout_5">
<item row="1" column="0">
<widget class="QTextBrowser" name="textBrowser_net_recv"/>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QGroupBox" name="groupBox_6">
<property name="title">
<string>发出的数据</string>
</property>
<layout class="QGridLayout" name="gridLayout_7">
<item row="0" column="0">
<widget class="QTextBrowser" name="textBrowser_net_send"/>
</item>
</layout>
</widget>
</item>
</layout>
</widget>
</item>
</layout>
</widget>
</item>
<item row="0" column="0" rowspan="2">
<widget class="QGroupBox" name="seriel_set_groupBox">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="styleSheet">
<string notr="true"/>
</property>
<property name="title">
<string>设备串口设置</string>
</property>
<layout class="QGridLayout" name="gridLayout">
<item row="2" column="0">
<widget class="QLabel" name="stop_bit_label">
<property name="text">
<string>停止位</string>
</property>
</widget>
</item>
<item row="0" column="0">
<widget class="QLabel" name="port_number_label">
<property name="sizePolicy">
<sizepolicy hsizetype="Maximum" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>串口号</string>
</property>
</widget>
</item>
<item row="4" column="1">
<widget class="QComboBox" name="parity_bit_Box">
<property name="minimumSize">
<size>
<width>0</width>
<height>30</height>
</size>
</property>
<property name="font">
<font>
<family>微软雅黑</family>
<pointsize>10</pointsize>
<weight>9</weight>
<italic>false</italic>
<bold>false</bold>
</font>
</property>
<property name="toolTip">
<string>默认无</string>
</property>
</widget>
</item>
<item row="7" column="0">
<widget class="QCheckBox" name="checkBox_mode_client">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="toolTip">
<string>取消勾选即可断开连接</string>
</property>
<property name="text">
<string>客户端模式</string>
</property>
</widget>
</item>
<item row="6" column="0" colspan="2">
<widget class="QGroupBox" name="recv_set_groupBox">
<property name="enabled">
<bool>true</bool>
</property>
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>0</width>
<height>100</height>
</size>
</property>
<property name="styleSheet">
<string notr="true"/>
</property>
<property name="title">
<string>接收设置</string>
</property>
<layout class="QGridLayout" name="gridLayout_2">
<item row="2" column="1">
<widget class="QCheckBox" name="checkBox_hex_mode">
<property name="text">
<string>发送HEX</string>
</property>
</widget>
</item>
<item row="2" column="2">
<widget class="QCheckBox" name="checkBox_ascii_mode">
<property name="text">
<string>发送ASCII</string>
</property>
</widget>
</item>
<item row="1" column="1" colspan="2">
<widget class="QPushButton" name="pushButton_3">
<property name="text">
<string>清除串口缓存</string>
</property>
</widget>
</item>
<item row="3" column="1">
<widget class="QCheckBox" name="checkBox_save_uart_log">
<property name="text">
<string>保存串口接收日志</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item row="3" column="0">
<widget class="QLabel" name="data_bit_label">
<property name="text">
<string>数据位</string>
</property>
</widget>
</item>
<item row="7" column="1">
<widget class="QCheckBox" name="checkBox_mode_server">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>服务器模式</string>
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QLabel" name="bundrate_label">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Maximum">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>0</width>
<height>30</height>
</size>
</property>
<property name="text">
<string>波特率</string>
</property>
</widget>
</item>
<item row="4" column="0">
<widget class="QLabel" name="parity_bit_label">
<property name="text">
<string>奇偶校验位</string>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QComboBox" name="port_number_Box">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Maximum">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>0</width>
<height>30</height>
</size>
</property>
<property name="font">
<font>
<family>微软雅黑</family>
<pointsize>10</pointsize>
<weight>9</weight>
<italic>false</italic>
<bold>false</bold>
</font>
</property>
<property name="toolTip">
<string>选择一个串口号</string>
</property>
</widget>
</item>
<item row="5" column="0" colspan="2">
<widget class="QPushButton" name="open_serial_pushButton">
<property name="minimumSize">
<size>
<width>0</width>
<height>30</height>
</size>
</property>
<property name="font">
<font>
<family>微软雅黑</family>
<pointsize>10</pointsize>
<weight>9</weight>
<italic>false</italic>
<bold>false</bold>
</font>
</property>
<property name="toolTip">
<string>启动或关闭串口</string>
</property>
<property name="autoFillBackground">
<bool>false</bool>
</property>
<property name="text">
<string>打开串口</string>
</property>
<property name="icon">
<iconset>
<normalon>:/Src/kaiguan_kai.ico</normalon>
<disabledoff>:/Src/kaiguan_guan.ico</disabledoff>
<disabledon>:/Src/kaiguan_kai.ico</disabledon>
<activeoff>:/Src/kaiguan_guan.ico</activeoff>
</iconset>
</property>
</widget>
</item>
<item row="2" column="1">
<widget class="QComboBox" name="stop_bit_Box">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Maximum">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>0</width>
<height>30</height>
</size>
</property>
<property name="font">
<font>
<family>微软雅黑</family>
<pointsize>10</pointsize>
<weight>9</weight>
<italic>false</italic>
<bold>false</bold>
</font>
</property>
<property name="toolTip">
<string>默认1位</string>
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="QComboBox" name="baudrate_Box">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="font">
<font>
<family>微软雅黑</family>
<pointsize>10</pointsize>
<weight>9</weight>
<italic>false</italic>
<bold>false</bold>
</font>
</property>
<property name="toolTip">
<string>默认115200</string>
</property>
</widget>
</item>
<item row="3" column="1">
<widget class="QComboBox" name="data_bit_Box">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Maximum">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>0</width>
<height>30</height>
</size>
</property>
<property name="font">
<font>
<family>微软雅黑</family>
<pointsize>10</pointsize>
<weight>9</weight>
<italic>false</italic>
<bold>false</bold>
</font>
</property>
<property name="toolTip">
<string>默认8位</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item row="5" column="1">
<widget class="QGroupBox" name="groupBox_5">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>0</width>
<height>380</height>
</size>
</property>
<property name="title">
<string>本地串口收发信息窗口</string>
</property>
<layout class="QGridLayout" name="gridLayout_8">
<item row="1" column="0">
<widget class="QTextBrowser" name="Write_to_device_textBrowser">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="toolTip">
<string>调试信息展示窗口</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item row="2" column="0" rowspan="2">
<widget class="QGroupBox" name="groupBox_3">
<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="title">
<string>信息提示口</string>
</property>
<layout class="QGridLayout" name="gridLayout_6">
<item row="1" column="0">
<widget class="QTextBrowser" name="textBrowser_megtips">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="toolTip">
<string>信息提示窗口</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item row="5" column="0">
<widget class="QGroupBox" name="groupBox_2">
<property name="sizePolicy">
<sizepolicy hsizetype="Maximum" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="title">
<string>数据过滤</string>
</property>
<layout class="QFormLayout" name="formLayout">
<item row="0" column="0">
<widget class="QLabel" name="label">
<property name="text">
<string>协议头HEX</string>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QLineEdit" name="lineEdit_protocol_head"/>
</item>
<item row="1" column="0">
<widget class="QLabel" name="label_2">
<property name="text">
<string>协议尾HEX</string>
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="QLineEdit" name="lineEdit_protocol_tail"/>
</item>
<item row="2" column="0">
<widget class="QCheckBox" name="checkBox_filter_log">
<property name="text">
<string>过滤日志</string>
</property>
</widget>
</item>
<item row="2" column="1">
<widget class="QCheckBox" name="checkBox_filter_show">
<property name="text">
<string>协议字段显示</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
</layout>
</widget>
<widget class="QMenuBar" name="menubar">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>1468</width>
<height>23</height>
</rect>
</property>
<widget class="QMenu" name="menushezhi">
<property name="title">
<string>设置</string>
</property>
</widget>
<widget class="QMenu" name="menu">
<property name="title">
<string>关于</string>
</property>
<addaction name="separator"/>
<addaction name="action_operating"/>
</widget>
<widget class="QMenu" name="action_news">
<property name="styleSheet">
<string notr="true">color: rgb(120, 120, 120);</string>
</property>
<property name="title">
<string>V2.0.6</string>
</property>
</widget>
<addaction name="menushezhi"/>
<addaction name="menu"/>
<addaction name="action_news"/>
</widget>
<action name="actionReturn_default">
<property name="text">
<string>恢复默认值</string>
</property>
</action>
<action name="actionReturn_0">
<property name="text">
<string>归零</string>
</property>
</action>
<action name="action_select_version">
<property name="text">
<string>点击选择型号</string>
</property>
</action>
<action name="action_see_dvc_info">
<property name="icon">
<iconset resource="Src/Src.qrc">
<normaloff>:/Src/banshou.ico</normaloff>:/Src/banshou.ico</iconset>
</property>
<property name="text">
<string>查看设备已用信息</string>
</property>
<property name="iconText">
<string>查看设备已用信息</string>
</property>
</action>
<action name="action_operating">
<property name="icon">
<iconset resource="Src/Src.qrc">
<normaloff>:/Src/wenhao.ico</normaloff>:/Src/wenhao.ico</iconset>
</property>
<property name="text">
<string>使用说明</string>
</property>
</action>
<action name="action_news_switch">
<property name="text">
<string/>
</property>
</action>
<action name="action_news_switch_2">
<property name="text">
<string>启用新闻轮播</string>
</property>
</action>
<action name="action_find_dvc_update_time">
<property name="icon">
<iconset resource="Src/Src.qrc">
<normaloff>:/Src/fangdajing.ico</normaloff>:/Src/fangdajing.ico</iconset>
</property>
<property name="text">
<string>查找设备数据更新时间</string>
</property>
</action>
<action name="action_open_info_with_sys">
<property name="icon">
<iconset resource="Src/Src.qrc">
<normaloff>:/Src/correct.ico</normaloff>:/Src/correct.ico</iconset>
</property>
<property name="text">
<string>打开设备信息文件</string>
</property>
</action>
</widget>
<resources>
<include location="Src/Src.qrc"/>
</resources>
<connections/>
</ui>
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。