508 lines
14 KiB
XML
508 lines
14 KiB
XML
<?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>485</width>
|
||
<height>795</height>
|
||
</rect>
|
||
</property>
|
||
<property name="sizePolicy">
|
||
<sizepolicy hsizetype="MinimumExpanding" vsizetype="MinimumExpanding">
|
||
<horstretch>0</horstretch>
|
||
<verstretch>0</verstretch>
|
||
</sizepolicy>
|
||
</property>
|
||
<property name="windowTitle">
|
||
<string>物联网小车控制器</string>
|
||
</property>
|
||
<property name="autoFillBackground">
|
||
<bool>true</bool>
|
||
</property>
|
||
<property name="documentMode">
|
||
<bool>true</bool>
|
||
</property>
|
||
<property name="tabShape">
|
||
<enum>QTabWidget::Triangular</enum>
|
||
</property>
|
||
<property name="dockNestingEnabled">
|
||
<bool>true</bool>
|
||
</property>
|
||
<property name="unifiedTitleAndToolBarOnMac">
|
||
<bool>true</bool>
|
||
</property>
|
||
<widget class="QWidget" name="centralwidget">
|
||
<layout class="QGridLayout" name="gridLayout" rowstretch="5,1,1,1,10,10,1,1" columnstretch="1,5,5,5,5,1">
|
||
<property name="leftMargin">
|
||
<number>0</number>
|
||
</property>
|
||
<property name="topMargin">
|
||
<number>0</number>
|
||
</property>
|
||
<property name="rightMargin">
|
||
<number>0</number>
|
||
</property>
|
||
<property name="bottomMargin">
|
||
<number>0</number>
|
||
</property>
|
||
<item row="0" column="0" rowspan="3" colspan="6">
|
||
<widget class="QLabel" name="logoLabel">
|
||
<property name="font">
|
||
<font>
|
||
<family>字魂49号-逍遥行书</family>
|
||
<pointsize>44</pointsize>
|
||
<weight>75</weight>
|
||
<bold>true</bold>
|
||
</font>
|
||
</property>
|
||
<property name="layoutDirection">
|
||
<enum>Qt::LeftToRight</enum>
|
||
</property>
|
||
<property name="text">
|
||
<string>物联网小车控制器</string>
|
||
</property>
|
||
<property name="alignment">
|
||
<set>Qt::AlignCenter</set>
|
||
</property>
|
||
<property name="wordWrap">
|
||
<bool>true</bool>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="7" column="0" colspan="6">
|
||
<widget class="QLabel" name="Button">
|
||
<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="maximumSize">
|
||
<size>
|
||
<width>2000</width>
|
||
<height>2000</height>
|
||
</size>
|
||
</property>
|
||
<property name="font">
|
||
<font>
|
||
<pointsize>1</pointsize>
|
||
</font>
|
||
</property>
|
||
<property name="text">
|
||
<string/>
|
||
</property>
|
||
<property name="pixmap">
|
||
<pixmap resource="image.qrc">:/image/bottom-1.png</pixmap>
|
||
</property>
|
||
<property name="scaledContents">
|
||
<bool>true</bool>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="4" column="0" rowspan="3">
|
||
<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 row="4" column="5" rowspan="3">
|
||
<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 row="4" column="1" rowspan="3" colspan="4">
|
||
<widget class="QTabWidget" name="tabWidget">
|
||
<property name="autoFillBackground">
|
||
<bool>true</bool>
|
||
</property>
|
||
<property name="styleSheet">
|
||
<string notr="true"/>
|
||
</property>
|
||
<property name="tabPosition">
|
||
<enum>QTabWidget::North</enum>
|
||
</property>
|
||
<property name="tabShape">
|
||
<enum>QTabWidget::Triangular</enum>
|
||
</property>
|
||
<property name="currentIndex">
|
||
<number>0</number>
|
||
</property>
|
||
<property name="usesScrollButtons">
|
||
<bool>false</bool>
|
||
</property>
|
||
<property name="documentMode">
|
||
<bool>false</bool>
|
||
</property>
|
||
<property name="tabBarAutoHide">
|
||
<bool>false</bool>
|
||
</property>
|
||
<widget class="QWidget" name="rockerTab">
|
||
<attribute name="title">
|
||
<string>控制器</string>
|
||
</attribute>
|
||
<layout class="QGridLayout" name="gridLayout_5" columnstretch="8,1,1,8" rowminimumheight="1,200,1,1">
|
||
<item row="3" column="1">
|
||
<widget class="QPushButton" name="right_r">
|
||
<property name="enabled">
|
||
<bool>false</bool>
|
||
</property>
|
||
<property name="text">
|
||
<string>顺时针转🔃</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="2" column="0" colspan="4">
|
||
<spacer name="verticalSpacer">
|
||
<property name="orientation">
|
||
<enum>Qt::Vertical</enum>
|
||
</property>
|
||
<property name="sizeHint" stdset="0">
|
||
<size>
|
||
<width>1</width>
|
||
<height>1</height>
|
||
</size>
|
||
</property>
|
||
</spacer>
|
||
</item>
|
||
<item row="1" column="0">
|
||
<spacer name="horizontalSpacer_8">
|
||
<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 row="1" column="1" colspan="2">
|
||
<widget class="Handle" name="rocker" native="true">
|
||
<property name="enabled">
|
||
<bool>false</bool>
|
||
</property>
|
||
<property name="autoFillBackground">
|
||
<bool>false</bool>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="3" column="2">
|
||
<widget class="QPushButton" name="left_r">
|
||
<property name="enabled">
|
||
<bool>false</bool>
|
||
</property>
|
||
<property name="text">
|
||
<string>逆时针转🔄</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="1" column="3">
|
||
<spacer name="horizontalSpacer_9">
|
||
<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 row="0" column="0" colspan="4">
|
||
<spacer name="verticalSpacer_4">
|
||
<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>
|
||
<widget class="QWidget" name="MQTTTab">
|
||
<attribute name="title">
|
||
<string>MQTT服务器</string>
|
||
</attribute>
|
||
<layout class="QGridLayout" name="gridLayout_4" rowstretch="5,5,5,1" columnstretch="1,5,5,5,1">
|
||
<item row="0" column="1">
|
||
<widget class="QLabel" name="addressLabel">
|
||
<property name="text">
|
||
<string>服务器地址:</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="3" column="3">
|
||
<widget class="QPushButton" name="disconnectButton">
|
||
<property name="enabled">
|
||
<bool>false</bool>
|
||
</property>
|
||
<property name="text">
|
||
<string>断开</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="1" column="1">
|
||
<widget class="QLabel" name="portLabel">
|
||
<property name="text">
|
||
<string>服务器端口:</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="3" column="2">
|
||
<spacer name="horizontalSpacer_7">
|
||
<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 row="2" column="1">
|
||
<widget class="QLabel" name="ctrlTopiLlabel">
|
||
<property name="text">
|
||
<string>控制Topic:</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="1" column="2" colspan="2">
|
||
<widget class="QLineEdit" name="portEdit">
|
||
<property name="text">
|
||
<string>11883</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="3" column="4">
|
||
<spacer name="horizontalSpacer_4">
|
||
<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 row="0" column="2" colspan="2">
|
||
<widget class="QLineEdit" name="addressEdit">
|
||
<property name="text">
|
||
<string>mqtt.ourdocs.cn</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="2" column="2" colspan="2">
|
||
<widget class="QLineEdit" name="ctrlTopicEdit">
|
||
<property name="text">
|
||
<string>/Car</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="3" column="0">
|
||
<spacer name="horizontalSpacer_3">
|
||
<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 row="3" column="1">
|
||
<widget class="QPushButton" name="connectButton">
|
||
<property name="text">
|
||
<string> 连接</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
</layout>
|
||
</widget>
|
||
<widget class="QWidget" name="logTab">
|
||
<attribute name="title">
|
||
<string>日志</string>
|
||
</attribute>
|
||
<layout class="QGridLayout" name="gridLayout_2">
|
||
<property name="leftMargin">
|
||
<number>20</number>
|
||
</property>
|
||
<property name="topMargin">
|
||
<number>12</number>
|
||
</property>
|
||
<property name="rightMargin">
|
||
<number>20</number>
|
||
</property>
|
||
<property name="bottomMargin">
|
||
<number>20</number>
|
||
</property>
|
||
<item row="0" column="0">
|
||
<widget class="QTextBrowser" name="log"/>
|
||
</item>
|
||
</layout>
|
||
</widget>
|
||
<widget class="QWidget" name="infoTab">
|
||
<attribute name="title">
|
||
<string>关于</string>
|
||
</attribute>
|
||
<layout class="QGridLayout" name="gridLayout_3" rowstretch="1,5,5,1">
|
||
<item row="2" column="0">
|
||
<widget class="QLabel" name="copyrightLabel">
|
||
<property name="font">
|
||
<font>
|
||
<family>Comic Sans MS</family>
|
||
<pointsize>19</pointsize>
|
||
<italic>false</italic>
|
||
</font>
|
||
</property>
|
||
<property name="text">
|
||
<string>©2021
|
||
Made By Mentalflow.</string>
|
||
</property>
|
||
<property name="alignment">
|
||
<set>Qt::AlignCenter</set>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="1" column="0">
|
||
<widget class="QLabel" name="sloganLabel">
|
||
<property name="font">
|
||
<font>
|
||
<family>字魂49号-逍遥行书</family>
|
||
<pointsize>27</pointsize>
|
||
</font>
|
||
</property>
|
||
<property name="text">
|
||
<string>为电子设计综合实验设计</string>
|
||
</property>
|
||
<property name="alignment">
|
||
<set>Qt::AlignCenter</set>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="3" column="0">
|
||
<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>
|
||
<item row="0" column="0">
|
||
<spacer name="verticalSpacer_3">
|
||
<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>
|
||
</widget>
|
||
</item>
|
||
<item row="3" column="2" colspan="2">
|
||
<widget class="QLabel" name="Logo">
|
||
<property name="text">
|
||
<string/>
|
||
</property>
|
||
<property name="pixmap">
|
||
<pixmap resource="image.qrc">:/image/logo.png</pixmap>
|
||
</property>
|
||
<property name="scaledContents">
|
||
<bool>false</bool>
|
||
</property>
|
||
<property name="alignment">
|
||
<set>Qt::AlignCenter</set>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="3" column="0" colspan="2">
|
||
<spacer name="horizontalSpacer_5">
|
||
<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 row="3" column="4" colspan="2">
|
||
<spacer name="horizontalSpacer_6">
|
||
<property name="orientation">
|
||
<enum>Qt::Horizontal</enum>
|
||
</property>
|
||
<property name="sizeHint" stdset="0">
|
||
<size>
|
||
<width>40</width>
|
||
<height>20</height>
|
||
</size>
|
||
</property>
|
||
</spacer>
|
||
</item>
|
||
</layout>
|
||
</widget>
|
||
<action name="action">
|
||
<property name="text">
|
||
<string>关于</string>
|
||
</property>
|
||
</action>
|
||
</widget>
|
||
<customwidgets>
|
||
<customwidget>
|
||
<class>Handle</class>
|
||
<extends>QWidget</extends>
|
||
<header>handle.h</header>
|
||
<container>1</container>
|
||
</customwidget>
|
||
</customwidgets>
|
||
<resources>
|
||
<include location="image.qrc"/>
|
||
</resources>
|
||
<connections/>
|
||
</ui>
|