⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 xcom.ui

📁 在linux下的QT中使用串口的编程方法
💻 UI
字号:
<ui version="4.0" > <class>MainWindow</class> <widget class="QMainWindow" name="MainWindow" >  <property name="geometry" >   <rect>    <x>0</x>    <y>0</y>    <width>698</width>    <height>612</height>   </rect>  </property>  <property name="windowTitle" >   <string>MainWindow</string>  </property>  <widget class="QWidget" name="centralwidget" >   <widget class="QGroupBox" name="groupBox" >    <property name="geometry" >     <rect>      <x>10</x>      <y>10</y>      <width>171</width>      <height>231</height>     </rect>    </property>    <property name="title" >     <string>串口配置</string>    </property>    <widget class="QComboBox" name="comboBox" >     <property name="geometry" >      <rect>       <x>80</x>       <y>20</y>       <width>81</width>       <height>22</height>      </rect>     </property>    </widget>    <widget class="QComboBox" name="comboBox_2" >     <property name="geometry" >      <rect>       <x>80</x>       <y>50</y>       <width>81</width>       <height>22</height>      </rect>     </property>    </widget>    <widget class="QComboBox" name="comboBox_3" >     <property name="geometry" >      <rect>       <x>80</x>       <y>80</y>       <width>81</width>       <height>22</height>      </rect>     </property>    </widget>    <widget class="QComboBox" name="comboBox_4" >     <property name="geometry" >      <rect>       <x>80</x>       <y>110</y>       <width>81</width>       <height>22</height>      </rect>     </property>    </widget>    <widget class="QComboBox" name="comboBox_5" >     <property name="geometry" >      <rect>       <x>80</x>       <y>140</y>       <width>81</width>       <height>22</height>      </rect>     </property>    </widget>    <widget class="QComboBox" name="comboBox_6" >     <property name="geometry" >      <rect>       <x>80</x>       <y>170</y>       <width>81</width>       <height>22</height>      </rect>     </property>    </widget>    <widget class="QPushButton" name="pushButton" >     <property name="geometry" >      <rect>       <x>20</x>       <y>200</y>       <width>131</width>       <height>23</height>      </rect>     </property>     <property name="text" >      <string>打开串口</string>     </property>    </widget>    <widget class="QLabel" name="label" >     <property name="geometry" >      <rect>       <x>20</x>       <y>20</y>       <width>51</width>       <height>16</height>      </rect>     </property>     <property name="text" >      <string>串口号:</string>     </property>    </widget>    <widget class="QLabel" name="label_2" >     <property name="geometry" >      <rect>       <x>20</x>       <y>50</y>       <width>51</width>       <height>16</height>      </rect>     </property>     <property name="text" >      <string>波特率:</string>     </property>    </widget>    <widget class="QLabel" name="label_3" >     <property name="geometry" >      <rect>       <x>20</x>       <y>80</y>       <width>51</width>       <height>16</height>      </rect>     </property>     <property name="text" >      <string>校验位:</string>     </property>    </widget>    <widget class="QLabel" name="label_4" >     <property name="geometry" >      <rect>       <x>20</x>       <y>110</y>       <width>51</width>       <height>16</height>      </rect>     </property>     <property name="text" >      <string>数据位:</string>     </property>    </widget>    <widget class="QLabel" name="label_5" >     <property name="geometry" >      <rect>       <x>20</x>       <y>140</y>       <width>51</width>       <height>16</height>      </rect>     </property>     <property name="text" >      <string>停止位:</string>     </property>    </widget>    <widget class="QLabel" name="label_6" >     <property name="geometry" >      <rect>       <x>20</x>       <y>170</y>       <width>51</width>       <height>16</height>      </rect>     </property>     <property name="text" >      <string>控制流:</string>     </property>    </widget>   </widget>   <widget class="QGroupBox" name="groupBox_2" >    <property name="geometry" >     <rect>      <x>200</x>      <y>10</y>      <width>481</width>      <height>361</height>     </rect>    </property>    <property name="title" >     <string>接收区</string>    </property>    <widget class="QTextBrowser" name="textBrowser" >     <property name="geometry" >      <rect>       <x>10</x>       <y>20</y>       <width>461</width>       <height>331</height>      </rect>     </property>    </widget>   </widget>   <widget class="QGroupBox" name="groupBox_3" >    <property name="geometry" >     <rect>      <x>200</x>      <y>380</y>      <width>481</width>      <height>191</height>     </rect>    </property>    <property name="title" >     <string>发送区</string>    </property>    <widget class="QTextEdit" name="textEdit" >     <property name="geometry" >      <rect>       <x>10</x>       <y>20</y>       <width>461</width>       <height>161</height>      </rect>     </property>    </widget>   </widget>   <widget class="QGroupBox" name="groupBox_4" >    <property name="geometry" >     <rect>      <x>10</x>      <y>250</y>      <width>171</width>      <height>71</height>     </rect>    </property>    <property name="title" >     <string>接收缓冲</string>    </property>    <widget class="QCheckBox" name="checkBox" >     <property name="geometry" >      <rect>       <x>20</x>       <y>20</y>       <width>101</width>       <height>17</height>      </rect>     </property>     <property name="text" >      <string>   HEX 显示</string>     </property>    </widget>    <widget class="QPushButton" name="pushButton_2" >     <property name="geometry" >      <rect>       <x>20</x>       <y>40</y>       <width>131</width>       <height>23</height>      </rect>     </property>     <property name="text" >      <string>清空接收</string>     </property>    </widget>   </widget>   <widget class="QGroupBox" name="groupBox_5" >    <property name="geometry" >     <rect>      <x>10</x>      <y>330</y>      <width>171</width>      <height>101</height>     </rect>    </property>    <property name="title" >     <string>计数器</string>    </property>    <widget class="QLabel" name="label_7" >     <property name="geometry" >      <rect>       <x>20</x>       <y>20</y>       <width>31</width>       <height>16</height>      </rect>     </property>     <property name="text" >      <string>发送</string>     </property>    </widget>    <widget class="QLabel" name="label_8" >     <property name="geometry" >      <rect>       <x>20</x>       <y>40</y>       <width>31</width>       <height>16</height>      </rect>     </property>     <property name="text" >      <string>接收</string>     </property>    </widget>    <widget class="QLineEdit" name="lineEdit" >     <property name="geometry" >      <rect>       <x>60</x>       <y>20</y>       <width>91</width>       <height>20</height>      </rect>     </property>    </widget>    <widget class="QLineEdit" name="lineEdit_2" >     <property name="geometry" >      <rect>       <x>60</x>       <y>40</y>       <width>91</width>       <height>20</height>      </rect>     </property>    </widget>    <widget class="QPushButton" name="pushButton_4" >     <property name="geometry" >      <rect>       <x>20</x>       <y>70</y>       <width>131</width>       <height>23</height>      </rect>     </property>     <property name="text" >      <string>重新计数</string>     </property>    </widget>   </widget>   <widget class="QGroupBox" name="groupBox_6" >    <property name="geometry" >     <rect>      <x>10</x>      <y>440</y>      <width>171</width>      <height>131</height>     </rect>    </property>    <property name="title" >     <string>发送缓冲</string>    </property>    <widget class="QCheckBox" name="checkBox_2" >     <property name="geometry" >      <rect>       <x>20</x>       <y>20</y>       <width>101</width>       <height>17</height>      </rect>     </property>     <property name="text" >      <string>   HEX 发送</string>     </property>    </widget>    <widget class="QPushButton" name="pushButton_5" >     <property name="geometry" >      <rect>       <x>20</x>       <y>40</y>       <width>131</width>       <height>23</height>      </rect>     </property>     <property name="text" >      <string>发送数据</string>     </property>    </widget>    <widget class="QLabel" name="label_9" >     <property name="geometry" >      <rect>       <x>20</x>       <y>70</y>       <width>31</width>       <height>16</height>      </rect>     </property>     <property name="text" >      <string>间隔</string>     </property>    </widget>    <widget class="QLineEdit" name="lineEdit_3" >     <property name="geometry" >      <rect>       <x>60</x>       <y>70</y>       <width>81</width>       <height>20</height>      </rect>     </property>    </widget>    <widget class="QPushButton" name="pushButton_6" >     <property name="geometry" >      <rect>       <x>20</x>       <y>100</y>       <width>131</width>       <height>23</height>      </rect>     </property>     <property name="text" >      <string>连续发送</string>     </property>    </widget>   </widget>  </widget>  <widget class="QMenuBar" name="menubar" >   <property name="geometry" >    <rect>     <x>0</x>     <y>0</y>     <width>698</width>     <height>20</height>    </rect>   </property>   <widget class="QMenu" name="menuA" >    <property name="title" >     <string>a</string>    </property>    <addaction name="actionAa" />    <addaction name="actionAb" />    <addaction name="separator" />    <addaction name="actionAc" />   </widget>   <widget class="QMenu" name="menuB" >    <property name="title" >     <string>b</string>    </property>    <addaction name="actionBa" />    <addaction name="actionBb" />   </widget>   <widget class="QMenu" name="menuC" >    <property name="title" >     <string>c</string>    </property>    <addaction name="actionCa" />   </widget>   <addaction name="menuA" />   <addaction name="menuB" />   <addaction name="menuC" />  </widget>  <widget class="QStatusBar" name="statusbar" />  <action name="actionAa" >   <property name="text" >    <string>aa</string>   </property>  </action>  <action name="actionAb" >   <property name="text" >    <string>ab</string>   </property>  </action>  <action name="actionAc" >   <property name="text" >    <string>ac</string>   </property>  </action>  <action name="actionBa" >   <property name="text" >    <string>ba</string>   </property>  </action>  <action name="actionBb" >   <property name="text" >    <string>bb</string>   </property>  </action>  <action name="actionCa" >   <property name="text" >    <string>ca</string>   </property>  </action> </widget> <resources/> <connections/></ui>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -