有没有办法在PyQt5的QPushButton中设置多个彩色文本?

问题描述

我当前的QPushButton看起来像这样;

enter image description here

但是我需要一种方法来使(3)以不同的颜色显示

当前的样式表;

QPushButton {
background-color: rgba(255,255,100);
border-style: outset;
border: 2px solid rgb(0,0);

}
QPushButton:hover {
background-color: rgba(255,50);
border-style: outset;
border-radius: 30px;
}
QPushButton:pressed {
background-color: rgba(255,10);
border-style: inset;
border-radius: 30px;
}
QPushButton:focus {
color: rgba(255,255);
background-color: rgba(0,125);
border-style: inset;
border-radius: 30px;
}

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)