QSS 漂亮的进度条和菜单

QPushButton::hover{background-color:#91608D;}


QPushButton{background-color:#9A91B0;}


QCheckBox{
border-color: #c6c6c6;
background: #808080;
}


 QRadioButton{
    -webkit-appearance: none;
    background-color: #808080;
    border: 1px solid #cacece;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05), inset 0px -15px 10px -12px rgba(0,0,0,0.05);
    padding: 9px;
    border-radius: 50px;
    display: inline-block;
    position: relative;
}


QProgressBar{
border: 2px solid grey;
border-radius: 5px;
}


QProgressBar::chunk{
background-color: #05B8CC; 
width: 20px;
}




/*QDockWidget{border-color: #c6c6c6; }*/


/*Qmenu Style Sheets*/
 QMenu {
     background-color: white; /* sets background of the menu 设置整个菜单区域的背景色,我用的是白色:white*/
     border: 1px solid white;/*整个菜单区域的边框粗细、样式、颜色*/
 }
  
QMenuBar::item{
    background-color: rgb(170, 255, 255);
    padding:8px 32px;/*设置菜单项文字上下和左右的内边距,效果就是菜单中的条目左右上下有了间隔*/
    margin:0px 8px;/*设置菜单项的外边距*/
    border-bottom:1px solid #DBDBDB;/*为菜单项之间添加横线间隔*/
}


 QMenu::item {
     /* sets background of menu item. set this to something non-transparent
         if you want menu color and menu item color to be different */
     background-color: transparent;
     padding:8px 32px;/*设置菜单项文字上下和左右的内边距,效果就是菜单中的条目左右上下有了间隔*/
     margin:0px 8px;/*设置菜单项的外边距*/
     border-bottom:1px solid #DBDBDB;/*为菜单项之间添加横线间隔*/
 }
  
 QMenu::item:selected { /* when user selects item using mouse or keyboard */
     background-color: #2dabf9;/*这一句是设置菜单项鼠标经过选中的样式*/
 }


QDialog{background-color:black;}


/*QDockWidget{background-color:red;}*/


/*QDateTimeEdit{background-color:#C0C0C0;}*/


QComboBox{background-color:#9A91B0;}


QDateTimeEdit{background-color:#9A91B0;}


QComboBox::down-arrow:pressed{background-color:#91608D}


QComboBox QAbstractItemView{background-color:rgb(188,199,216)}/*rgb(58,73,104)*/


QLabel{color:black;}


QLabel{background-color:#808080;}


QAction{background-color:#808080;}


/*QGroupBox {
    border-width:1px;   //线的粗细
   border-style:solid;
  border-color:red;   //颜色,
  margin-top: 0.5ex;  //文字在方框中位置的偏离度
}
QGroupBox::title {
     subcontrol-origin: margin;
     subcontrol-position: top left;
   left:25px;       //线的偏离度
     margin-left: 0px;
     padding:0px;   //文字在方框中位置的偏离度
}*/


QGroupBox {
     /*background-color:#C0C0C0;*/
     border: 1px solid rgb(81,121,176);
     margin-top:4px; 
     color:rgb(255,255,255);
}


QGroupBox::title { 
     subcontrol-origin: margin; 
}


QLabel#label_2{background-color:#808080;}


QLabel#label_3{background-color:#808080;}


QLabel#label_4{background-color:#808080;}*/


QHeaderView::section{background-color:rgb(58,73,104);color:white;font:10pt '新宋体'}


QTableWidget{selection-background-color:rgb(0,156,225);background-color: rgb(255, 255, 255);}


QAbstractScrollArea {background-color:#808080;}


  • 2
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值