feat:进度条

This commit is contained in:
徐超 2024-10-31 18:06:13 +08:00
parent 3a0d6a188e
commit 94793e3b62
1 changed files with 93 additions and 10 deletions

View File

@ -1205,10 +1205,33 @@ QToolButton:pressed{
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QProgressBar" name="progressBar"> <widget class="QProgressBar" name="progressBar_belt1Speed">
<property name="maximumSize">
<size>
<width>16777215</width>
<height>10</height>
</size>
</property>
<property name="styleSheet">
<string notr="true">QProgressBar {
border: none;
background: #2E3133;
border-radius: 50px;
}
QProgressBar::chunk {
background: #53F2A4;
border-radius: 15px;
}</string>
</property>
<property name="value"> <property name="value">
<number>24</number> <number>24</number>
</property> </property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
<property name="textVisible">
<bool>false</bool>
</property>
</widget> </widget>
</item> </item>
</layout> </layout>
@ -1259,9 +1282,29 @@ QToolButton:pressed{
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QSlider" name="horizontalSlider_3"> <widget class="QProgressBar" name="progressBar_belt1electric">
<property name="orientation"> <property name="maximumSize">
<enum>Qt::Horizontal</enum> <size>
<width>16777215</width>
<height>10</height>
</size>
</property>
<property name="styleSheet">
<string notr="true">QProgressBar {
border: none;
background: #2E3133;
border-radius: 50px;
}
QProgressBar::chunk {
background: #53F2A4;
border-radius: 15px;
}</string>
</property>
<property name="value">
<number>24</number>
</property>
<property name="textVisible">
<bool>false</bool>
</property> </property>
</widget> </widget>
</item> </item>
@ -1313,9 +1356,29 @@ QToolButton:pressed{
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QSlider" name="horizontalSlider_4"> <widget class="QProgressBar" name="progressBar">
<property name="orientation"> <property name="maximumSize">
<enum>Qt::Horizontal</enum> <size>
<width>16777215</width>
<height>10</height>
</size>
</property>
<property name="styleSheet">
<string notr="true">QProgressBar {
border: none;
background: #2E3133;
border-radius: 50px;
}
QProgressBar::chunk {
background: #53F2A4;
border-radius: 15px;
}</string>
</property>
<property name="value">
<number>24</number>
</property>
<property name="textVisible">
<bool>false</bool>
</property> </property>
</widget> </widget>
</item> </item>
@ -1367,9 +1430,29 @@ QToolButton:pressed{
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QSlider" name="horizontalSlider_5"> <widget class="QProgressBar" name="progressBar_2">
<property name="orientation"> <property name="maximumSize">
<enum>Qt::Horizontal</enum> <size>
<width>16777215</width>
<height>10</height>
</size>
</property>
<property name="styleSheet">
<string notr="true">QProgressBar {
border: none;
background: #2E3133;
border-radius: 50px;
}
QProgressBar::chunk {
background: #53F2A4;
border-radius: 15px;
}</string>
</property>
<property name="value">
<number>24</number>
</property>
<property name="textVisible">
<bool>false</bool>
</property> </property>
</widget> </widget>
</item> </item>