308 lines
8.1 KiB
XML
308 lines
8.1 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<ui version="4.0">
|
|
<class>HomeWidget</class>
|
|
<widget class="QWidget" name="HomeWidget">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>0</x>
|
|
<y>0</y>
|
|
<width>1200</width>
|
|
<height>900</height>
|
|
</rect>
|
|
</property>
|
|
<property name="windowTitle">
|
|
<string>Form</string>
|
|
</property>
|
|
<layout class="QGridLayout" name="gridLayout_2">
|
|
<item row="1" column="0" colspan="3">
|
|
<widget class="QStackedWidget" name="homeStackWidget">
|
|
<property name="currentIndex">
|
|
<number>0</number>
|
|
</property>
|
|
<widget class="DynamicHistogramWidget" name="home_page"/>
|
|
<widget class="SettingsWidget" name="settings_page"/>
|
|
</widget>
|
|
</item>
|
|
<item row="0" column="2">
|
|
<widget class="QWidget" name="widget_4" native="true">
|
|
<widget class="QLabel" name="datetimeLabel_2">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>30</x>
|
|
<y>30</y>
|
|
<width>72</width>
|
|
<height>15</height>
|
|
</rect>
|
|
</property>
|
|
<property name="text">
|
|
<string/>
|
|
</property>
|
|
</widget>
|
|
</widget>
|
|
</item>
|
|
<item row="0" column="0">
|
|
<widget class="QWidget" name="widget_2" native="true">
|
|
<widget class="QLabel" name="datetimeLabel">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>11</x>
|
|
<y>4</y>
|
|
<width>291</width>
|
|
<height>51</height>
|
|
</rect>
|
|
</property>
|
|
<property name="styleSheet">
|
|
<string notr="true">font: 12pt "微软雅黑";</string>
|
|
</property>
|
|
<property name="text">
|
|
<string/>
|
|
</property>
|
|
</widget>
|
|
</widget>
|
|
</item>
|
|
<item row="0" column="1">
|
|
<widget class="QWidget" name="widget_3" native="true">
|
|
<layout class="QGridLayout" name="gridLayout">
|
|
<item row="0" column="0">
|
|
<widget class="QLabel" name="port_con_msg">
|
|
<property name="styleSheet">
|
|
<string notr="true">background-color: rgb(255, 0, 0);
|
|
font: 18pt "微软雅黑";</string>
|
|
</property>
|
|
<property name="text">
|
|
<string>PLC读取失败: 串口未连接!</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
</item>
|
|
<item row="2" column="0" colspan="3">
|
|
<widget class="QWidget" name="widget" native="true">
|
|
<layout class="QHBoxLayout" name="horizontalLayout">
|
|
<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>
|
|
<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>
|
|
<widget class="QToolButton" name="homeBtn">
|
|
<property name="sizePolicy">
|
|
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
|
|
<horstretch>0</horstretch>
|
|
<verstretch>0</verstretch>
|
|
</sizepolicy>
|
|
</property>
|
|
<property name="baseSize">
|
|
<size>
|
|
<width>0</width>
|
|
<height>0</height>
|
|
</size>
|
|
</property>
|
|
<property name="text">
|
|
<string>homeBtn</string>
|
|
</property>
|
|
<property name="icon">
|
|
<iconset resource="res.qrc">
|
|
<normaloff>:/home</normaloff>:/home</iconset>
|
|
</property>
|
|
<property name="iconSize">
|
|
<size>
|
|
<width>80</width>
|
|
<height>80</height>
|
|
</size>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<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>
|
|
<widget class="QToolButton" name="settingBtn">
|
|
<property name="text">
|
|
<string>settingBtn</string>
|
|
</property>
|
|
<property name="icon">
|
|
<iconset resource="res.qrc">
|
|
<normaloff>:/set</normaloff>:/set</iconset>
|
|
</property>
|
|
<property name="iconSize">
|
|
<size>
|
|
<width>80</width>
|
|
<height>80</height>
|
|
</size>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<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>
|
|
<widget class="QToolButton" name="statusBtn">
|
|
<property name="text">
|
|
<string/>
|
|
</property>
|
|
<property name="icon">
|
|
<iconset resource="res.qrc">
|
|
<normaloff>:/picture</normaloff>:/picture</iconset>
|
|
</property>
|
|
<property name="iconSize">
|
|
<size>
|
|
<width>80</width>
|
|
<height>80</height>
|
|
</size>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<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>
|
|
<item>
|
|
<widget class="QToolButton" name="logsBtn">
|
|
<property name="text">
|
|
<string>logsBtn</string>
|
|
</property>
|
|
<property name="icon">
|
|
<iconset resource="res.qrc">
|
|
<normaloff>:/history</normaloff>:/history</iconset>
|
|
</property>
|
|
<property name="iconSize">
|
|
<size>
|
|
<width>80</width>
|
|
<height>80</height>
|
|
</size>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<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>
|
|
<widget class="QToolButton" name="exitBtn">
|
|
<property name="text">
|
|
<string>exitBtn</string>
|
|
</property>
|
|
<property name="icon">
|
|
<iconset resource="res.qrc">
|
|
<normaloff>:/exit2</normaloff>:/exit2</iconset>
|
|
</property>
|
|
<property name="iconSize">
|
|
<size>
|
|
<width>80</width>
|
|
<height>80</height>
|
|
</size>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<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>
|
|
<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>
|
|
</layout>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
<customwidgets>
|
|
<customwidget>
|
|
<class>DynamicHistogramWidget</class>
|
|
<extends>QWidget</extends>
|
|
<header>dynamichistogramwidget.h</header>
|
|
<container>1</container>
|
|
</customwidget>
|
|
<customwidget>
|
|
<class>SettingsWidget</class>
|
|
<extends>QWidget</extends>
|
|
<header>settingswidget.h</header>
|
|
<container>1</container>
|
|
</customwidget>
|
|
</customwidgets>
|
|
<resources>
|
|
<include location="res.qrc"/>
|
|
</resources>
|
|
<connections/>
|
|
</ui>
|