代码拉取完成,页面将自动刷新
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>forceSensorChart</class>
<widget class="QMainWindow" name="forceSensorChart">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>1058</width>
<height>616</height>
</rect>
</property>
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>16777215</height>
</size>
</property>
<property name="windowTitle">
<string>六维力传感器数据监测器</string>
</property>
<widget class="QWidget" name="centralwidget">
<layout class="QVBoxLayout" name="verticalLayout_3">
<item>
<layout class="QHBoxLayout" name="horizontalLayout_2">
<item>
<layout class="QVBoxLayout" name="verticalLayout_2" stretch="0,0,0,0,0">
<item>
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
<widget class="QLabel" name="label">
<property name="font">
<font>
<family>Microsoft YaHei UI</family>
<pointsize>10</pointsize>
</font>
</property>
<property name="text">
<string>端口号:</string>
</property>
</widget>
</item>
<item>
<widget class="QToolButton" name="btnRefreshPort">
<property name="text">
<string/>
</property>
<property name="icon">
<iconset resource="res.qrc">
<normaloff>:/icon/images/update.svg</normaloff>:/icon/images/update.svg</iconset>
</property>
<property name="autoRaise">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<widget class="QComboBox" name="comboPortBox"/>
</item>
</layout>
</item>
<item>
<widget class="QPushButton" name="btnOpenPort">
<property name="font">
<font>
<family>Microsoft YaHei UI</family>
</font>
</property>
<property name="text">
<string>打开端口</string>
</property>
<property name="checkable">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<widget class="Line" name="line">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
</widget>
</item>
<item>
<widget class="QGroupBox" name="groupBox">
<property name="font">
<font>
<family>Microsoft YaHei UI</family>
<bold>false</bold>
</font>
</property>
<property name="title">
<string>接收区设置</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<widget class="QCheckBox" name="chkSave">
<property name="font">
<font>
<family>Microsoft YaHei UI</family>
<bold>false</bold>
</font>
</property>
<property name="text">
<string>接收并保存到文件</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="chkBinary">
<property name="enabled">
<bool>false</bool>
</property>
<property name="font">
<font>
<family>Microsoft YaHei UI</family>
<bold>false</bold>
</font>
</property>
<property name="text">
<string>十六进制显示</string>
</property>
<property name="checkable">
<bool>true</bool>
</property>
<property name="checked">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="chkPause">
<property name="font">
<font>
<family>Microsoft YaHei UI</family>
<bold>false</bold>
</font>
</property>
<property name="text">
<string>暂停接收数据</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="btnClear">
<property name="font">
<font>
<family>Microsoft YaHei UI</family>
<bold>false</bold>
</font>
</property>
<property name="text">
<string>清空接收区</string>
</property>
</widget>
</item>
<item>
<spacer name="verticalSpacer">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QGroupBox" name="groupBox_2">
<property name="font">
<font>
<family>Microsoft YaHei UI</family>
</font>
</property>
<property name="title">
<string>绘图区设置</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout_4">
<item>
<widget class="QRadioButton" name="chartMode1">
<property name="text">
<string>显示模式1(follow)</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<widget class="QRadioButton" name="chartMode2">
<property name="text">
<string>显示模式2(squzzez)</string>
</property>
</widget>
</item>
<item>
<spacer name="verticalSpacer_2">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
</item>
</layout>
</item>
<item>
<widget class="QTabWidget" name="tabWidget">
<property name="font">
<font>
<family>Microsoft YaHei UI</family>
</font>
</property>
<property name="currentIndex">
<number>0</number>
</property>
<widget class="QWidget" name="tabDataView">
<attribute name="title">
<string>数据监测</string>
</attribute>
<layout class="QVBoxLayout" name="verticalLayout_7">
<item>
<layout class="QVBoxLayout" name="verticalLayout_6" stretch="5,1,0">
<item>
<widget class="QTextEdit" name="comRecord"/>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_4">
<item>
<widget class="QPlainTextEdit" name="plainTextEdit"/>
</item>
<item>
<widget class="QToolButton" name="btnSend">
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>100</width>
<height>80</height>
</size>
</property>
<property name="text">
<string>...</string>
</property>
<property name="icon">
<iconset resource="res.qrc">
<normaloff>:/icon/images/send.svg</normaloff>:/icon/images/send.svg</iconset>
</property>
<property name="iconSize">
<size>
<width>40</width>
<height>40</height>
</size>
</property>
</widget>
</item>
</layout>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_3">
<item>
<widget class="QLabel" name="label_2">
<property name="text">
<string>发送:</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="sendBytesCount">
<property name="text">
<string>0</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="QLabel" name="label_3">
<property name="text">
<string>接收:</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="recvBytesCount">
<property name="text">
<string>0</string>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_2">
<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="QToolButton" name="btnReset">
<property name="autoFillBackground">
<bool>false</bool>
</property>
<property name="text">
<string>复位计数</string>
</property>
<property name="icon">
<iconset resource="res.qrc">
<normaloff>:/icon/images/reset.svg</normaloff>:/icon/images/reset.svg</iconset>
</property>
<property name="toolButtonStyle">
<enum>Qt::ToolButtonTextBesideIcon</enum>
</property>
<property name="autoRaise">
<bool>true</bool>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</item>
</layout>
</widget>
<widget class="QWidget" name="tabChartView">
<attribute name="title">
<string>绘图监测</string>
</attribute>
<layout class="QVBoxLayout" name="verticalLayout_5">
<item>
<widget class="QChartView" name="chartView"/>
</item>
</layout>
</widget>
<widget class="QWidget" name="tab">
<attribute name="title">
<string>绘图监测2</string>
</attribute>
<layout class="QVBoxLayout" name="verticalLayout_9">
<item>
<layout class="QVBoxLayout" name="verticalLayout_8" stretch="1,1,0">
<item>
<widget class="QCustomPlot" name="forceWidget" native="true"/>
</item>
<item>
<widget class="QCustomPlot" name="torqueWidget" native="true"/>
</item>
<item>
<widget class="QLabel" name="statusBar">
<property name="text">
<string/>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</widget>
</widget>
</item>
</layout>
</item>
<item>
<widget class="QLabel" name="stateBar">
<property name="font">
<font>
<family>Microsoft YaHei UI</family>
</font>
</property>
<property name="text">
<string>状态提示信息</string>
</property>
</widget>
</item>
</layout>
</widget>
</widget>
<customwidgets>
<customwidget>
<class>QCustomPlot</class>
<extends>QWidget</extends>
<header location="global">qcustomplot.h</header>
<container>1</container>
</customwidget>
<customwidget>
<class>QChartView</class>
<extends>QGraphicsView</extends>
<header>qchartview.h</header>
</customwidget>
</customwidgets>
<resources>
<include location="res.qrc"/>
</resources>
<connections/>
</ui>
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。