Qt Designer Ui设计
*{
background-color: rgb(255, 255, 255);
}
QFrame#frame{
border-image: url(:/lxh/lxh_back.jpg);
border-radius:20px;
/*整体背景*/
}
#frame_title{
border-image: url(:/lxh/zz.gif);
border-top-left-radius: 20px;
border-top-right-radius: 20px;
border-bottom-left-radius: 0px;
border-bottom-right-radius: 0px;
/*上半部分背景*/
}
#frame_text{
background-color: rgba(79, 158, 0, 120);
border-radius:20px;
}
QLabel#label{
background:transparent;/*完全透明*/
color: rgba(0, 255, 255,130);
font: 17pt "Onyx";
}
QLineEdit{
background:transparent;
border:none;
border-bottom:1px solid rgba(255,255,255,130);
color: rgba(0, 0, 0, 250);
font: 13pt "Lucida Sans Unicode";
}
#btn_head{
border-image: url(:/lxh/lxh_title.jpg);
border-radius: 35px;
background-color: rgba(255, 255, 255, 0);
background:transparent;
}
QPushButton{
background-color: qlineargradient(spread:pad, x1:0, y1:0, x2:1, y2:1, stop:0 rgba(111, 175, 73, 255), stop:1 rgba(255, 255, 255, 255));
border-radius:4px;
color: rgba(33, 33, 255,130);
font: 11pt "等线";
}
QPushButton:hover{
background-color: qlineargradient(spread:pad, x1:0, y1:0, x2:1, y2:1, stop:0 rgba(111, 175, 73, 255), stop:1 rgba(255, 255, 255, 255));
border-radius:4px;
color: rgba(33, 33, 255,130);
font: 11pt "等线";
}
QPushButton:pressed{
background-color: qlineargradient(spread:pad, x1:0, y1:0, x2:1, y2:1, stop:0 rgba(111, 175, 73, 255), stop:1 rgba(255, 255, 255, 255));
border-radius:4px;
color: rgba(33, 33, 255,130);
font: 11pt "等线";
padding-top:5px;
padding-left:5px;
}
原文地址:https://blog.csdn.net/qwe352/article/details/144223876
免责声明:本站文章内容转载自网络资源,如本站内容侵犯了原著者的合法权益,可联系本站删除。更多内容请关注自学内容网(zxcms.com)!