1 Star 0 Fork 1

zhoutk / Linux_QT_serialTools

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
mainwindow.ui 11.95 KB
一键复制 编辑 原始数据 按行查看 历史
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538
<?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>1000</width>
<height>600</height>
</rect>
</property>
<property name="windowTitle">
<string>MainWindow</string>
</property>
<widget class="QWidget" name="centralwidget">
<widget class="QGroupBox" name="groupBox_3">
<property name="geometry">
<rect>
<x>810</x>
<y>390</y>
<width>181</width>
<height>111</height>
</rect>
</property>
<property name="title">
<string>发送设置</string>
</property>
<widget class="QRadioButton" name="radioButton_send_ascii">
<property name="geometry">
<rect>
<x>20</x>
<y>30</y>
<width>61</width>
<height>21</height>
</rect>
</property>
<property name="text">
<string>ASCII</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
</widget>
<widget class="QRadioButton" name="radioButton_send_hex">
<property name="geometry">
<rect>
<x>100</x>
<y>30</y>
<width>61</width>
<height>21</height>
</rect>
</property>
<property name="text">
<string>HEX</string>
</property>
</widget>
<widget class="QPushButton" name="pushButton_send_data">
<property name="geometry">
<rect>
<x>20</x>
<y>80</y>
<width>141</width>
<height>21</height>
</rect>
</property>
<property name="text">
<string>发送</string>
</property>
</widget>
<widget class="QCheckBox" name="checkBox_send_linefeed">
<property name="geometry">
<rect>
<x>20</x>
<y>50</y>
<width>92</width>
<height>23</height>
</rect>
</property>
<property name="text">
<string>发送换行</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
</widget>
</widget>
<widget class="QLabel" name="label_sendbyte_count">
<property name="geometry">
<rect>
<x>120</x>
<y>510</y>
<width>101</width>
<height>16</height>
</rect>
</property>
<property name="text">
<string/>
</property>
</widget>
<widget class="QLabel" name="label_send">
<property name="geometry">
<rect>
<x>40</x>
<y>510</y>
<width>67</width>
<height>17</height>
</rect>
</property>
<property name="text">
<string>发送计数:</string>
</property>
</widget>
<widget class="QLabel" name="label_recv">
<property name="geometry">
<rect>
<x>270</x>
<y>510</y>
<width>67</width>
<height>17</height>
</rect>
</property>
<property name="text">
<string>接收计数:</string>
</property>
</widget>
<widget class="QTextBrowser" name="textBrowser_recv">
<property name="geometry">
<rect>
<x>10</x>
<y>10</y>
<width>791</width>
<height>351</height>
</rect>
</property>
</widget>
<widget class="QLabel" name="label_recvbyte_count">
<property name="geometry">
<rect>
<x>340</x>
<y>510</y>
<width>121</width>
<height>21</height>
</rect>
</property>
<property name="text">
<string/>
</property>
</widget>
<widget class="QGroupBox" name="groupBox">
<property name="geometry">
<rect>
<x>810</x>
<y>10</y>
<width>181</width>
<height>231</height>
</rect>
</property>
<property name="title">
<string>串口配置</string>
</property>
<widget class="QLabel" name="label_port">
<property name="geometry">
<rect>
<x>10</x>
<y>30</y>
<width>41</width>
<height>21</height>
</rect>
</property>
<property name="text">
<string>端口</string>
</property>
</widget>
<widget class="QLabel" name="label_baud">
<property name="geometry">
<rect>
<x>10</x>
<y>60</y>
<width>51</width>
<height>21</height>
</rect>
</property>
<property name="text">
<string>波特率</string>
</property>
</widget>
<widget class="QLabel" name="label_checkbit">
<property name="geometry">
<rect>
<x>10</x>
<y>90</y>
<width>51</width>
<height>21</height>
</rect>
</property>
<property name="text">
<string>校验位</string>
</property>
</widget>
<widget class="QLabel" name="label_databit">
<property name="geometry">
<rect>
<x>10</x>
<y>120</y>
<width>51</width>
<height>21</height>
</rect>
</property>
<property name="text">
<string>数据位</string>
</property>
</widget>
<widget class="QLabel" name="label_stopbit">
<property name="geometry">
<rect>
<x>10</x>
<y>150</y>
<width>51</width>
<height>21</height>
</rect>
</property>
<property name="text">
<string>停止位</string>
</property>
</widget>
<widget class="QComboBox" name="comboBox_port">
<property name="geometry">
<rect>
<x>70</x>
<y>30</y>
<width>101</width>
<height>21</height>
</rect>
</property>
<item>
<property name="text">
<string>ttymxc2</string>
</property>
</item>
</widget>
<widget class="QComboBox" name="comboBox_checkbit">
<property name="geometry">
<rect>
<x>70</x>
<y>90</y>
<width>101</width>
<height>21</height>
</rect>
</property>
<item>
<property name="text">
<string></string>
</property>
</item>
<item>
<property name="text">
<string></string>
</property>
</item>
<item>
<property name="text">
<string></string>
</property>
</item>
</widget>
<widget class="QComboBox" name="comboBox_databit">
<property name="geometry">
<rect>
<x>70</x>
<y>120</y>
<width>101</width>
<height>21</height>
</rect>
</property>
<item>
<property name="text">
<string>8</string>
</property>
</item>
<item>
<property name="text">
<string>7</string>
</property>
</item>
<item>
<property name="text">
<string>6</string>
</property>
</item>
<item>
<property name="text">
<string>5</string>
</property>
</item>
</widget>
<widget class="QComboBox" name="comboBox_stopbit">
<property name="geometry">
<rect>
<x>70</x>
<y>150</y>
<width>101</width>
<height>21</height>
</rect>
</property>
<item>
<property name="text">
<string>1</string>
</property>
</item>
<item>
<property name="text">
<string>1.5</string>
</property>
</item>
<item>
<property name="text">
<string>2</string>
</property>
</item>
</widget>
<widget class="QComboBox" name="comboBox_baud">
<property name="geometry">
<rect>
<x>70</x>
<y>60</y>
<width>101</width>
<height>21</height>
</rect>
</property>
<item>
<property name="text">
<string>115200</string>
</property>
</item>
<item>
<property name="text">
<string>9600</string>
</property>
</item>
<item>
<property name="text">
<string>2400</string>
</property>
</item>
<item>
<property name="text">
<string>4800</string>
</property>
</item>
<item>
<property name="text">
<string>19200</string>
</property>
</item>
<item>
<property name="text">
<string>38400</string>
</property>
</item>
<item>
<property name="text">
<string>12800</string>
</property>
</item>
</widget>
<widget class="QPushButton" name="pushButton_open_uart">
<property name="geometry">
<rect>
<x>60</x>
<y>180</y>
<width>111</width>
<height>41</height>
</rect>
</property>
<property name="text">
<string>open</string>
</property>
</widget>
<widget class="QLabel" name="label_state">
<property name="geometry">
<rect>
<x>20</x>
<y>190</y>
<width>21</width>
<height>21</height>
</rect>
</property>
<property name="autoFillBackground">
<bool>false</bool>
</property>
<property name="text">
<string/>
</property>
<property name="margin">
<number>0</number>
</property>
</widget>
</widget>
<widget class="QLabel" name="label_version">
<property name="geometry">
<rect>
<x>810</x>
<y>510</y>
<width>171</width>
<height>21</height>
</rect>
</property>
<property name="text">
<string>version:V1.0 胡浩明</string>
</property>
</widget>
<widget class="QGroupBox" name="groupBox_2">
<property name="geometry">
<rect>
<x>810</x>
<y>240</y>
<width>181</width>
<height>141</height>
</rect>
</property>
<property name="title">
<string>接受设置</string>
</property>
<widget class="QRadioButton" name="radioButton_recv_ascii">
<property name="enabled">
<bool>true</bool>
</property>
<property name="geometry">
<rect>
<x>10</x>
<y>30</y>
<width>61</width>
<height>21</height>
</rect>
</property>
<property name="text">
<string>ASCII</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
</widget>
<widget class="QRadioButton" name="radioButton_recv_hex">
<property name="geometry">
<rect>
<x>110</x>
<y>30</y>
<width>61</width>
<height>21</height>
</rect>
</property>
<property name="text">
<string>HEX</string>
</property>
<property name="checked">
<bool>false</bool>
</property>
</widget>
<widget class="QCheckBox" name="checkBox_stop_show">
<property name="geometry">
<rect>
<x>40</x>
<y>60</y>
<width>91</width>
<height>21</height>
</rect>
</property>
<property name="text">
<string>停止显示</string>
</property>
</widget>
<widget class="QPushButton" name="pushButton_clean_recv_buff">
<property name="geometry">
<rect>
<x>40</x>
<y>100</y>
<width>101</width>
<height>21</height>
</rect>
</property>
<property name="text">
<string>清空接收缓冲</string>
</property>
</widget>
</widget>
<widget class="QPushButton" name="pushButton_clean_count">
<property name="geometry">
<rect>
<x>510</x>
<y>510</y>
<width>89</width>
<height>25</height>
</rect>
</property>
<property name="text">
<string>清空计数</string>
</property>
</widget>
<widget class="QPushButton" name="pushButton_clean_input">
<property name="geometry">
<rect>
<x>680</x>
<y>510</y>
<width>89</width>
<height>25</height>
</rect>
</property>
<property name="text">
<string>清除输入</string>
</property>
</widget>
<widget class="QTextEdit" name="textEdit_send">
<property name="geometry">
<rect>
<x>10</x>
<y>370</y>
<width>791</width>
<height>131</height>
</rect>
</property>
</widget>
</widget>
<widget class="QMenuBar" name="menubar">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>1000</width>
<height>28</height>
</rect>
</property>
</widget>
<widget class="QStatusBar" name="statusbar"/>
</widget>
<resources/>
<connections/>
</ui>
C++
1
https://gitee.com/zhoutk/linux_qt_serial-tools.git
git@gitee.com:zhoutk/linux_qt_serial-tools.git
zhoutk
linux_qt_serial-tools
Linux_QT_serialTools
master

搜索帮助