1 Star 6 Fork 2

jiangtao / GoSlowDetection

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
weatherwidget.ui 9.54 KB
一键复制 编辑 原始数据 按行查看 历史
jiangtao 提交于 2022-03-11 17:41 . 设计天气预报界面
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>WeatherWidget</class>
<widget class="QWidget" name="WeatherWidget">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>674</width>
<height>364</height>
</rect>
</property>
<property name="font">
<font>
<family>Microsoft YaHei UI</family>
</font>
</property>
<property name="windowTitle">
<string>Form</string>
</property>
<layout class="QGridLayout" name="gridLayout_4" columnstretch="2,3">
<item row="0" column="0">
<widget class="QWidget" name="widget" native="true">
<property name="styleSheet">
<string notr="true">color: #2f3640;
background-color: #999999;
border-radius: 15px;
border-style: solid;
padding: 5px;</string>
</property>
<layout class="QGridLayout" name="gridLayout_2">
<item row="0" column="0">
<layout class="QHBoxLayout" name="horizontalLayout_3">
<item>
<widget class="QLabel" name="label_city">
<property name="font">
<font>
<family>Microsoft YaHei UI</family>
<pointsize>25</pointsize>
<weight>50</weight>
<italic>false</italic>
<bold>false</bold>
</font>
</property>
<property name="styleSheet">
<string notr="true">color: rgb(244, 244, 244);
font: 25pt &quot;Microsoft YaHei UI&quot;;</string>
</property>
<property name="text">
<string>广州</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_3">
<property name="maximumSize">
<size>
<width>2</width>
<height>16777215</height>
</size>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgb(200, 200, 200);</string>
</property>
<property name="text">
<string/>
</property>
</widget>
</item>
<item>
<layout class="QVBoxLayout" name="verticalLayout_2">
<item>
<widget class="QLabel" name="label_week">
<property name="font">
<font>
<family>Microsoft YaHei UI</family>
<pointsize>25</pointsize>
<weight>50</weight>
<italic>false</italic>
<bold>false</bold>
</font>
</property>
<property name="styleSheet">
<string notr="true">color: rgb(244, 244, 244);
font: 25pt &quot;Microsoft YaHei UI&quot;;</string>
</property>
<property name="text">
<string>星期一</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_date">
<property name="font">
<font>
<family>Microsoft YaHei UI</family>
<pointsize>12</pointsize>
<weight>50</weight>
<italic>false</italic>
<bold>false</bold>
</font>
</property>
<property name="styleSheet">
<string notr="true">color: rgb(244, 244, 244);
font: 12pt &quot;Microsoft YaHei UI&quot;;</string>
</property>
<property name="text">
<string>2022/03/11</string>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</item>
<item row="1" column="0">
<widget class="QLabel" name="label_10">
<property name="maximumSize">
<size>
<width>16777215</width>
<height>2</height>
</size>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgb(200, 200, 200);</string>
</property>
<property name="text">
<string/>
</property>
</widget>
</item>
<item row="2" column="0">
<layout class="QGridLayout" name="gridLayout" rowstretch="1,1">
<item row="0" column="1">
<widget class="QLabel" name="label_tem">
<property name="font">
<font>
<family>Microsoft YaHei UI</family>
<pointsize>25</pointsize>
<weight>50</weight>
<italic>false</italic>
<bold>false</bold>
</font>
</property>
<property name="styleSheet">
<string notr="true">color: rgb(244, 244, 244);
font: 25pt &quot;Microsoft YaHei UI&quot;;</string>
</property>
<property name="text">
<string>29度</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
</widget>
</item>
<item row="1" column="1">
<layout class="QHBoxLayout" name="horizontalLayout_2">
<item>
<widget class="QLabel" name="label_humLog">
<property name="styleSheet">
<string notr="true">image: url(:/new/prefix1/resource/hum.png);</string>
</property>
<property name="text">
<string/>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_hum">
<property name="font">
<font>
<family>Microsoft YaHei UI</family>
<pointsize>15</pointsize>
<weight>50</weight>
<italic>false</italic>
<bold>false</bold>
</font>
</property>
<property name="styleSheet">
<string notr="true">color: rgb(244, 244, 244);
font: 15pt &quot;Microsoft YaHei UI&quot;;</string>
</property>
<property name="text">
<string>55%</string>
</property>
</widget>
</item>
</layout>
</item>
<item row="0" column="0">
<widget class="QLabel" name="label_sky">
<property name="styleSheet">
<string notr="true">image: url(:/new/prefix1/resource/weather/qingtian.bmp);</string>
</property>
<property name="text">
<string/>
</property>
</widget>
</item>
<item row="1" column="0">
<layout class="QVBoxLayout" name="verticalLayout" stretch="2,1">
<item>
<widget class="QLabel" name="label_windLog">
<property name="styleSheet">
<string notr="true">image: url(:/new/prefix1/resource/run.png);</string>
</property>
<property name="text">
<string/>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_wind">
<property name="font">
<font>
<family>Microsoft YaHei UI</family>
<pointsize>12</pointsize>
<weight>50</weight>
<italic>false</italic>
<bold>false</bold>
</font>
</property>
<property name="styleSheet">
<string notr="true">color: rgb(244, 244, 244);
font: 12pt &quot;Microsoft YaHei UI&quot;;</string>
</property>
<property name="text">
<string>西北风</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</item>
<item row="3" column="0">
<widget class="QLabel" name="label_2">
<property name="maximumSize">
<size>
<width>16777215</width>
<height>2</height>
</size>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgb(200, 200, 200);</string>
</property>
<property name="text">
<string/>
</property>
</widget>
</item>
<item row="4" column="0">
<widget class="QLabel" name="label">
<property name="styleSheet">
<string notr="true">color: rgb(244, 244, 244);
font: 12pt &quot;Microsoft YaHei UI&quot;;</string>
</property>
<property name="text">
<string>注意:- -</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item row="0" column="1">
<layout class="QGridLayout" name="gridLayout_3">
<item row="0" column="0">
<widget class="WeatherItem" name="widget_1" native="true">
<property name="styleSheet">
<string notr="true"/>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="WeatherItem" name="widget_2" native="true"/>
</item>
<item row="0" column="2">
<widget class="WeatherItem" name="widget_3" native="true"/>
</item>
<item row="1" column="0">
<widget class="WeatherItem" name="widget_4" native="true"/>
</item>
<item row="1" column="1">
<widget class="WeatherItem" name="widget_5" native="true"/>
</item>
<item row="1" column="2">
<widget class="WeatherItem" name="widget_6" native="true">
<property name="styleSheet">
<string notr="true"/>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</widget>
<customwidgets>
<customwidget>
<class>WeatherItem</class>
<extends>QWidget</extends>
<header>weatheritem.h</header>
<container>1</container>
</customwidget>
</customwidgets>
<resources/>
<connections/>
</ui>
C++
1
https://gitee.com/jiangtao008/GoSlowDetection.git
git@gitee.com:jiangtao008/GoSlowDetection.git
jiangtao008
GoSlowDetection
GoSlowDetection
master

搜索帮助