一套简约的qt 蓝色qss方案
直接使用qss代码
QMenu
{
background: qlineargradient(x1:0, y1:0, x2:0, y2:1,
stop:0 rgba(255, 255, 255, 240),
stop:0.2 rgba(255, 255, 255, 200),
stop:0.6 rgba(255, 255, 255, 160),
stop:1 rgba(255, 255, 255, 120));
qproperty-effect: blur(30px);
border-radius: 10px;
padding:4px 2px;
margin:4px 2px;
}
QMenu::item
{
background-color: transparent;
padding:2px 15px;
margin:2px 2px;
height: 30px; /* 设置item的高度 */
border-radius: 4px;
}
QMenu::item:selected
{
background-color: rgb(55,144,250);
}
/* 普通状态 */
QPushButton {
background-color: rgb(220,220,
标签:简约,qt,color,2px,stop,background,qss,rgba,255
From: https://blog.csdn.net/qq_43081702/article/details/141963711