liudianwu |
2019-10-18 08:25 |
上面那个是QTabBar
- QTabBar::tab{
border:1px solid #353535; color:#F0F0F0; margin:0px; background:qlineargradient(spread:pad,x1:0,y1:0,x2:0,y2:1,stop:0 #636363,stop:1 #575757); }
QTabBar::tab:selected,QTabBar::tab:hover{ border-style:solid; border-color:#00BB9E; background:#464646; }
QTabBar::tab:top,QTabBar::tab:bottom{ padding:3px 8px 3px 8px; }
QTabBar::tab:left,QTabBar::tab:right{ padding:8px 3px 8px 3px; }
QTabBar::tab:top:selected,QTabBar::tab:top:hover{ border-width:2px 0px 0px 0px; }
QTabBar::tab:right:selected,QTabBar::tab:right:hover{ border-width:0px 0px 0px 2px; }
QTabBar::tab:bottom:selected,QTabBar::tab:bottom:hover{ border-width:0px 0px 2px 0px; }
QTabBar::tab:left:selected,QTabBar::tab:left:hover{ border-width:0px 2px 0px 0px; }
QTabBar::tab:first:top:selected,QTabBar::tab:first:top:hover,QTabBar::tab:first:bottom:selected,QTabBar::tab:first:bottom:hover{ border-left-width:1px; border-left-color:#353535; }
QTabBar::tab:first:left:selected,QTabBar::tab:first:left:hover,QTabBar::tab:first:right:selected,QTabBar::tab:first:right:hover{ border-top-width:1px; border-top-color:#353535; }
QTabBar::tab:last:top:selected,QTabBar::tab:last:top:hover,QTabBar::tab:last:bottom:selected,QTabBar::tab:last:bottom:hover{ border-right-width:1px; border-right-color:#353535; }
QTabBar::tab:last:left:selected,QTabBar::tab:last:left:hover,QTabBar::tab:last:right:selected,QTabBar::tab:last:right:hover{ border-bottom-width:1px; border-bottom-color:#353535; }
下面这个是表格的左上角按钮
- QHeaderView::section,QTableCornerButton:section{
padding:3px; margin:0px; color:#F0F0F0; border:1px solid #353535; border-left-width:0px; border-right-width:1px; border-top-width:0px; border-bottom-width:1px; background:qlineargradient(spread:pad,x1:0,y1:0,x2:0,y2:1,stop:0 #636363,stop:1 #575757); }
你需要来一份Qt样式表武林秘籍,请关注我的开源主页 https://gitee.com/feiyangqingyun https://github.com/feiyangqingyun 强烈推荐关注里边的QWidgetDemo项目和Qt开发经验
|
|