update 修改qss带来的异常退出

This commit is contained in:
FrankCV2048
2024-11-07 23:14:15 +08:00
parent 5df4e7cadb
commit c8c1db727c
9 changed files with 2355 additions and 152 deletions

View File

@ -996,7 +996,7 @@ font: 9pt "楷体";
border: 1px solid #dcdfe6;
border-radius: 5px;
}
*:pressed
*:disabled
{
background-color: #ff6e00;
}
@ -1017,9 +1017,18 @@ background-color: #ff6e00;
</sizepolicy>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgba(255, 255, 255, 0);
<string notr="true">
QLabel:disabled{
background-color: rgba(255, 255, 255, 0);
font: 700 12pt &quot;Microsoft YaHei UI&quot;;
color: red;
}
QLabel{
background-color: rgba(255, 255, 255, 0);
font: 700 12pt &quot;Microsoft YaHei UI&quot;;
color:#7A7A7A;</string>
color:#7A7A7A;
}</string>
</property>
<property name="text">
<string>取料中...</string>
@ -1039,12 +1048,12 @@ color:#7A7A7A;</string>
</property>
<property name="styleSheet">
<string notr="true">*{
background-color: rgb(255, 0, 0);
background-color: #7A7A7A;
font: 9pt &quot;楷体&quot;;
border: 1px solid #dcdfe6;
border-radius: 5px;
}
*:pressed
*:disabled
{
background-color: #ff6e00;
}
@ -1065,9 +1074,18 @@ background-color: #ff6e00;
</sizepolicy>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgba(255, 255, 255, 0);
<string notr="true">
QLabel:disabled{
background-color: rgba(255, 255, 255, 0);
font: 700 12pt &quot;Microsoft YaHei UI&quot;;
color: red;
}
QLabel{
background-color: rgba(255, 255, 255, 0);
font: 700 12pt &quot;Microsoft YaHei UI&quot;;
color: red;</string>
color:#7A7A7A;
}</string>
</property>
<property name="text">
<string>拍照中...</string>
@ -1087,12 +1105,12 @@ color: red;</string>
</property>
<property name="styleSheet">
<string notr="true">*{
background-color: rgb(255, 0, 0);
background-color: #7A7A7A;
font: 9pt &quot;楷体&quot;;
border: 1px solid #dcdfe6;
border-radius: 5px;
}
*:pressed
*:disabled
{
background-color: #ff6e00;
}
@ -1113,9 +1131,18 @@ background-color: #ff6e00;
</sizepolicy>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgba(255, 255, 255, 0);
<string notr="true">
QLabel:disabled{
background-color: rgba(255, 255, 255, 0);
font: 700 12pt &quot;Microsoft YaHei UI&quot;;
color: red;
}
QLabel{
background-color: rgba(255, 255, 255, 0);
font: 700 12pt &quot;Microsoft YaHei UI&quot;;
color: black;</string>
color:#7A7A7A;
}</string>
</property>
<property name="text">
<string>抓料中...</string>
@ -1135,12 +1162,12 @@ color: black;</string>
</property>
<property name="styleSheet">
<string notr="true">*{
background-color: rgb(255, 0, 0);
background-color: #7A7A7A;
font: 9pt &quot;楷体&quot;;
border: 1px solid #dcdfe6;
border-radius: 5px;
}
*:pressed
*:disabled
{
background-color: #ff6e00;
}
@ -1161,9 +1188,18 @@ background-color: #ff6e00;
</sizepolicy>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgba(255, 255, 255, 0);
<string notr="true">
QLabel:disabled{
background-color: rgba(255, 255, 255, 0);
font: 700 12pt &quot;Microsoft YaHei UI&quot;;
color: red;
}
QLabel{
background-color: rgba(255, 255, 255, 0);
font: 700 12pt &quot;Microsoft YaHei UI&quot;;
color: black;</string>
color:#7A7A7A;
}</string>
</property>
<property name="text">
<string>投料中...</string>
@ -1473,6 +1509,13 @@ font: 700 9pt &quot;Microsoft YaHei UI&quot;;</string>
border: 1px solid #A2EF4D; /* 设置边框颜色和宽度 */
qproperty-alignment: 'AlignCenter'; /* 设置文本居中 */
}
QLabel:disabled{
background-color: #FD3251;
color: #ffffff;
border-radius: 8px;
border: 1px solid #FD3251;
qproperty-alignment: 'AlignCenter';
}
</string>
</property>
<property name="text">
@ -5061,7 +5104,12 @@ color:#ffffff
</sizepolicy>
</property>
<property name="styleSheet">
<string notr="true">color: rgb(255, 255, 255);</string>
<string notr="true">color: rgb(255, 255, 255);
border: 1px solid #dcdfe6;
font: 8pt &quot;Microsoft YaHei UI&quot;;</string>
</property>
<property name="placeholderText">
<string>自定义数量</string>
</property>
</widget>
</item>