1 Star 0 Fork 1

oceanyang / Qt UART

forked from BJ / Qt UART  
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
mainwindow.ui 7.52 KB
一键复制 编辑 原始数据 按行查看 历史
<?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>755</width>
<height>478</height>
</rect>
</property>
<property name="windowTitle">
<string>MainWindow</string>
</property>
<widget class="QWidget" name="centralWidget">
<widget class="QTextBrowser" name="textBrowser">
<property name="geometry">
<rect>
<x>12</x>
<y>2</y>
<width>256</width>
<height>291</height>
</rect>
</property>
</widget>
<widget class="QGroupBox" name="groupBox">
<property name="geometry">
<rect>
<x>580</x>
<y>10</y>
<width>171</width>
<height>231</height>
</rect>
</property>
<property name="title">
<string>串口设置</string>
</property>
<widget class="QWidget" name="layoutWidget">
<property name="geometry">
<rect>
<x>20</x>
<y>20</y>
<width>56</width>
<height>191</height>
</rect>
</property>
<layout class="QVBoxLayout" name="verticalLayout_3">
<item>
<widget class="QLabel" name="label">
<property name="text">
<string>串口选择</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_2">
<property name="text">
<string>波特率</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_4">
<property name="text">
<string>流控制</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_3">
<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_5">
<property name="text">
<string>奇偶校验</string>
</property>
</widget>
</item>
</layout>
</widget>
<widget class="QWidget" name="layoutWidget">
<property name="geometry">
<rect>
<x>80</x>
<y>20</y>
<width>81</width>
<height>201</height>
</rect>
</property>
<layout class="QVBoxLayout" name="verticalLayout_2">
<item>
<widget class="QComboBox" name="serialBox"/>
</item>
<item>
<widget class="QComboBox" name="baudrateBox"/>
</item>
<item>
<widget class="QComboBox" name="flowBox"/>
</item>
<item>
<widget class="QComboBox" name="databitBox"/>
</item>
<item>
<widget class="QComboBox" name="stopbitBox"/>
</item>
<item>
<widget class="QComboBox" name="paritycheckBox"/>
</item>
</layout>
</widget>
</widget>
<widget class="QPushButton" name="openButton">
<property name="geometry">
<rect>
<x>580</x>
<y>250</y>
<width>75</width>
<height>23</height>
</rect>
</property>
<property name="text">
<string>打开串口</string>
</property>
</widget>
<widget class="QPushButton" name="flushButton">
<property name="geometry">
<rect>
<x>660</x>
<y>250</y>
<width>75</width>
<height>23</height>
</rect>
</property>
<property name="text">
<string>刷新</string>
</property>
</widget>
<widget class="QPushButton" name="sendButton">
<property name="geometry">
<rect>
<x>280</x>
<y>340</y>
<width>75</width>
<height>23</height>
</rect>
</property>
<property name="text">
<string>发送</string>
</property>
</widget>
<widget class="QPushButton" name="stopserialButton">
<property name="geometry">
<rect>
<x>360</x>
<y>340</y>
<width>75</width>
<height>23</height>
</rect>
</property>
<property name="text">
<string>停止</string>
</property>
</widget>
<widget class="QTextEdit" name="textEdit">
<property name="geometry">
<rect>
<x>12</x>
<y>311</y>
<width>256</width>
<height>81</height>
</rect>
</property>
</widget>
<widget class="QRadioButton" name="receiverHex">
<property name="geometry">
<rect>
<x>280</x>
<y>270</y>
<width>89</width>
<height>16</height>
</rect>
</property>
<property name="text">
<string>16进制显示</string>
</property>
</widget>
<widget class="QGroupBox" name="groupBox_2">
<property name="geometry">
<rect>
<x>580</x>
<y>290</y>
<width>161</width>
<height>80</height>
</rect>
</property>
<property name="title">
<string>GroupBox</string>
</property>
<widget class="QPushButton" name="clearButton">
<property name="geometry">
<rect>
<x>10</x>
<y>20</y>
<width>75</width>
<height>23</height>
</rect>
</property>
<property name="text">
<string>清除接收</string>
</property>
</widget>
</widget>
<widget class="QGroupBox" name="groupBox_3">
<property name="geometry">
<rect>
<x>270</x>
<y>10</y>
<width>292</width>
<height>251</height>
</rect>
</property>
<property name="title">
<string>数值显示区</string>
</property>
<layout class="QGridLayout" name="gridLayout">
<item row="2" column="1">
<widget class="QLineEdit" name="data1_6"/>
</item>
<item row="2" column="0">
<widget class="QLineEdit" name="data1_5"/>
</item>
<item row="0" column="0">
<widget class="QLineEdit" name="data1"/>
</item>
<item row="0" column="1">
<widget class="QLineEdit" name="data1_2"/>
</item>
<item row="1" column="0">
<widget class="QLineEdit" name="data1_3"/>
</item>
<item row="1" column="1">
<widget class="QLineEdit" name="data1_4"/>
</item>
<item row="3" column="0">
<widget class="QLineEdit" name="data1_7"/>
</item>
<item row="3" column="1">
<widget class="QLineEdit" name="data1_8"/>
</item>
<item row="4" column="1">
<widget class="QLineEdit" name="data1_10"/>
</item>
<item row="4" column="0">
<widget class="QLineEdit" name="data1_9"/>
</item>
<item row="5" column="0">
<widget class="QLineEdit" name="data1_11"/>
</item>
<item row="5" column="1">
<widget class="QLineEdit" name="data1_12"/>
</item>
</layout>
</widget>
<widget class="QPushButton" name="showwaveButton">
<property name="geometry">
<rect>
<x>390</x>
<y>270</y>
<width>75</width>
<height>23</height>
</rect>
</property>
<property name="text">
<string>波形显示</string>
</property>
</widget>
</widget>
<widget class="QMenuBar" name="menuBar">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>755</width>
<height>23</height>
</rect>
</property>
</widget>
<widget class="QToolBar" name="mainToolBar">
<attribute name="toolBarArea">
<enum>TopToolBarArea</enum>
</attribute>
<attribute name="toolBarBreak">
<bool>false</bool>
</attribute>
</widget>
<widget class="QStatusBar" name="statusBar"/>
</widget>
<layoutdefault spacing="6" margin="11"/>
<resources/>
<connections/>
</ui>
C++
1
https://gitee.com/marineosc/Qt-UART.git
git@gitee.com:marineosc/Qt-UART.git
marineosc
Qt-UART
Qt UART
master

搜索帮助