Qss 样式表的尝试
    QLineEdit{
        border:1px solid #137eb6;
        padding:2px;
        background-color:#F5F5F5;
    }
    QToolTip{
        border:1px solid #1d60ba;
        background-color:#deeefa;
       border-radius:4px;
       color:dark;
       padding:1px;
   }
   QGroupBox{
       background-color: qlineargradient(x1:, y1:, x2:, y2:,
       stop:#F2F2F2, stop:  #FFFFFF);
       border:2px solid #15922e;
       border-radius:5px;
       margin-top:10px;/* leave space at the top for the title */
   }
   QGroupBox::title {
       subcontrol-origin: margin;
       subcontrol-position: top center;/* position at the top center */
       padding:03px;
       border-radius:2px;
       background-color: qlineargradient(x1:, y1:, x2:, y2:,
       stop:#DDDDDD, stop:  #FFFFFF);
   }
   QSplitter::handle:horizontal {
       /*image: url(images/splitter.png);*/
       background-color: #1c77ab;
   }
   QSplitter::handle:vertical {
       /*image: url(images/splitter.png);*/
       background-color: #1c77ab;
   }
   /*
  43 QSplitter::handle:horizontal {
  44     height: 10px;
  45 }
  46
  47 QSplitter::handle:vertical {
  48     width: 10px;
  49 }*/
   QPushButton{
       border: 1px solid #1c77ab;
       border-radius:2px;
       padding:2px 8px 2px 8px;
   /*    border-width:10px;
  57     min-height: 32px;*/
       min-width:  64px;
   }
   QPushButton:hover{
       background-color:#a2e4fc;
   }
   QPushButton:pressed{
       background-color:#a2e4fc;
   }
   /*
  68 QComboBox {
  69     border:1px solid #d7d7d7;
  70     border-radius: 3px;
  71     padding: 1px 18px 1px 3px;
  72 }
  73
  74 QComboBox:editable{
  75     background: white;
  76 }
  77 QComboBox:!editable{
  78     background: #fbfbfb; color:#15922e
  79 }
  80 QComboBox::drop-down{
  81     subcontrol-origin: padding;
  82     subcontrol-position: top right;
  83     width: 22px;
  84     border-left-width: 1px;
  85     border-left-color: #c9c9c9;
  86     border-left-style: solid;
  87     border-top-right-radius: 3px;
  88     border-bottom-right-radius: 3px;
  89 }
  90
  91 QComboBox::down-arrow{
  92     image: url(:/images/down.png);
  93 }
  94
  95 QComboBox::down-arrow:on {
  96     top: 1px;
  97     left: 1px;
  98 }
  99 QComboBox QAbstractItemView::item{
 100     max-width: 50px;
 101     min-height: 20px
 102 }
 103 */
  QRadioButton::indicator {
  width:13px;
  height:13px;
  }
  QRadioButton::indicator::unchecked{
  image: url(:/images/radio-button_off-.png);
  }
  QRadioButton::indicator:unchecked:hover {
  image: url(:/images/radio-button_off-.png);
  }
  QRadioButton::indicator:unchecked:pressed {
  image: url(:/images/radio-button_off-.png);
  }
  QRadioButton::indicator::checked{
  image: url(:/images/radio-button_on-.png);
  }
  QRadioButton::indicator:checked:hover {
  image: url(:/images/radio-button_on-.png);
  }
  QRadioButton::indicator:checked:pressed {
  image: url(:/images/radio-button_on-.png);
  }
  QTabWidget::pane{
      border-width:    ;
      border-image: url(:/images/pane.png)     stretch stretch;
  }
  QTabWidget::tab-bar{
      left: 10px;  /* 向右移left个像素*/
      top: 6px;    /* 向下移top个像素,调整top使tab下边框与pane上边框对齐*/
  }
  QTabBar::tab{
      border-width:    ; /* t r b l */
      border-image: url(:/images/tab_unsel.png)     stretch stretch;
      color: rgb(, , );
      min-width: 48px;
      min-height: 15px;
      max-height: 15px;
      padding: 0px;
  }
  QTabBar::tab:hover{
      border-image: url(:/images/tab_hover.png)     stretch stretch;
  }
  QTabBar::tab:selected{
      color: rgb(, , );
      border-image: url(:/images/tab_sel.png)     stretch stretch;
  }
  QTabBar::tab:disabled{
      color: rgb(, , );
      border-image: url(:/images/tab_disable.png)     stretch stretch;
  }
  QScrollBar:vertical
  {
      width:12px;
      background:rgba(,,,%);
      margin:0px,0px,0px,0px;
      padding-top:12px;
      padding-bottom:12px;
  }
  QScrollBar::handle:vertical
  {
      width:12px;
      background:rgba(,,,%);
      border-radius:5px;
      min-height:;
  }
  QScrollBar::handle:vertical:hover
  {
      width:12px;
      background:rgba(,,,%);
      border-radius:5px;
      min-height:;
  }
  QScrollBar::handle:vertical:pressed
  {
      width:12px;
      background:rgba(,,,%);
      border-radius:5px;
      min-height:;
  }
  QScrollBar::add-line:vertical
  {
      height:12px;width:12px;
      border-image:url(:/images/down_arrow-.png);
      subcontrol-position:bottom;
  }
  QScrollBar::add-line:vertical:hover
  {
      height:12px;width:12px;
      border-image:url(:/images/down_arrow-.png);
      subcontrol-position:bottom;
  }
  QScrollBar::add-line:vertical:pressed
  {
      height:12px;width:12px;
      border-image:url(:/images/down_arrow-.png);
      subcontrol-position:bottom;
  }
  QScrollBar::sub-line:vertical
  {
      height:12px;width:12px;
      border-image:url(:/images/up_arrow-.png);
      subcontrol-position:top;
  }
  QScrollBar::sub-line:vertical:hover
  {
      height:12px;width:12px;
      border-image:url(:/images/up_arrow-.png);
      subcontrol-position:top;
  }
  QScrollBar::sub-line:vertical:pressed
  {
      height:12px;width:12px;
      border-image:url(:/images/up_arrow-.png);
      subcontrol-position:top;
  }
  QScrollBar::add-page:vertical,QScrollBar::sub-page:vertical
  {
      background:rgba(,,,%);
  /*    border-radius:5px;  */
  }
  QScrollBar:horizontal
  {
      height:12px;
      background:rgba(,,,%);
      margin:0px,0px,0px,0px;
      padding-left:12px;
      padding-right:12px;
  }
  QScrollBar::handle:horizontal
  {
      height:12px;
      background:rgba(,,,%);
      border-radius:5px;
      min-width:;
  }
  QScrollBar::handle:horizontal:hover
  {
      height:12px;
      background:rgba(,,,%);
      border-radius:5px;
      min-width:;
  }
  QScrollBar::handle:horizontal:pressed
  {
      height:12px;
      background:rgba(,,,%);
      border-radius:5px;
      min-width:;
  }
  QScrollBar::add-line:horizontal
  {
      height:12px;width:12px;
      border-image:url(:/images/right_arrow-.png);
      subcontrol-position:right;
  }
  QScrollBar::add-line:horizontal:hover
  {
      height:12px;width:12px;
      border-image:url(:/images/right_arrow-.png);
      subcontrol-position:right;
  }
  QScrollBar::add-line:horizontal:pressed
  {
      height:12px;width:12px;
      border-image:url(:/images/right_arrow-.png);
      subcontrol-position:right;
  }
  QScrollBar::sub-line:horizontal
  {
      height:12px;width:12px;
      border-image:url(:/images/left_arrow-.png);
      subcontrol-position:left;
  }
  QScrollBar::sub-line:horizontal:hover
  {
      height:12px;width:12px;
      border-image:url(:/images/left_arrow-.png);
      subcontrol-position:left;
  }
  QScrollBar::sub-line:horizontal:pressed
  {
      height:12px;width:12px;
      border-image:url(:/images/left_arrow-.png);
      subcontrol-position:left;
  }
  QScrollBar::add-page:horizontal,QScrollBar::sub-page:horizontal
  {
      background:rgba(,,,%);
      border-radius:5px;
  }
  QMenu{
  background-color:#dfe0e0;
  border:2px solid black;
  }
  QMenu::item {
  background-color: transparent;
  }
  QMenu::item:selected {
  background-color:#38a2fb;
  }
  QMenu::separator {
  height:1px;
  background: #62a8f7;
  margin-left:10px;
  margin-right:5px;
  }
  QCheckBox{
  spacing:8px;
  }
  QCheckBox::indicator {
  width:16px;
  height:16px;
  }
  QCheckBox::indicator:unchecked{
  image: url(:/images/uncheck_box-.png);
  }
  QCheckBox::indicator:unchecked:hover {
  image: url(:/images/uncheck_box-.png);
  }
  QCheckBox::indicator:unchecked:pressed {
  image: url(:/images/uncheck_box-.png);
  }
  QCheckBox::indicator:checked{
  image: url(:/images/checked_box-.png);
  }
  QCheckBox::indicator:checked:hover {
  image: url(:/images/checked_box-.png);
  }
  QCheckBox::indicator:checked:pressed {
  image: url(:/images/checked_box-.png);
  }
  QHeaderView::section{
      background-color:#55bedc;
      border:1px solid #d0d0d0;
  }
  QTableView,QTableWidget{
      border:1px solid #7e7d7d;
      gridline-color:#44c030;
      background-color: rgb(, , );
      alternate-background-color: rgb(, , );
      selection-background-color: #6d95ee;
  }
  QTableView::item:hover {
      background: qlineargradient(x1:, y1:, x2:, y2:, stop:#e7effd, stop:  #cbdaf1);
      border:1px solid #bfcde4;
  }
  QTableWidget::item:hover {
      background: qlineargradient(x1:, y1:, x2:, y2:, stop:#e7effd, stop:  #cbdaf1);
      border:1px solid #bfcde4;
  }
  QTreeView{
      background-color: #FFFFFF;
      alternate-background-color: #f6f6f6;
  }
  /*
 397 QTreeView::item {
 398
 399     background: #5B677A;
 400     background: transparent;
 401     margin:5px;
 402     border: 1px solid #FFFFFF;
 403
 404     border:1px solid #d9d9d9;
 405     border-top-color: transparent;
 406     border-bottom-color: transparent;
 407     background:white;
 408 }*/
  QTreeView::item:hover {
      background: qlineargradient(x1:, y1:, x2:, y2:, stop:#e7effd, stop:  #cbdaf1);
      border:1px solid #bfcde4;
  }
  QTreeView::item:selected {
      border:1px solid #49ce58;
      color:#;
  }
  QTreeView::item:selected:active{
      background: qlineargradient(x1:, y1:, x2:, y2:, stop:#6ea1f1, stop:  #5e8edf);
  }
  QTreeView::item:selected:!active {
      background: qlineargradient(x1:, y1:, x2:, y2:, stop:#6b9be8, stop:  #6c98da);
  }
  QTreeView::branch{
      background:white;
  }
  QTreeView::branch:has-siblings:!adjoins-item {
  border-image: url(:/images/vline.png);
  }
  QTreeView::branch:has-siblings:adjoins-item {
  border-image: url(:/images/branch-more.png);
  }
  QTreeView::branch:!has-children:!has-siblings:adjoins-item {
  border-image: url(:/images/branch-end.png);
  }
  QTreeView::branch:has-children:!has-siblings:closed,
  QTreeView::branch:closed:has-children:has-siblings {
  border-image: none;
  image: url(:/images/expand_16px.png);
  }
  QTreeView::branch:open:has-children:!has-siblings,
  QTreeView::branch:open:has-children:has-siblings {
  border-image: none;
  image: url(:/images/collapse_16px.png);
  }
  QTreeWidget{
      background-color: #FFFFFF;
      alternate-background-color: #F6F6F6;
  }
  /*
 466 QTreeWidget::item {
 467
 468     margin:5px;
 469     border: 1px solid lightgray;
 470     background: #5B677A;
 471     background: transparent;
 472
 473     border:1px solid #d9d9d9;
 474     border-top-color: transparent;
 475     border-bottom-color: transparent;
 476     background:white;
 477 }
 478 */
  QTreeWidget::item:hover {
      background: qlineargradient(x1:, y1:, x2:, y2:, stop:#e7effd, stop:  #cbdaf1);
      border:1px solid #bfcde4;
  }
  QTreeWidget::item:selected {
      border:1px solid #49ce58;
      color:#;
  }
  QTreeWidget::item:selected:active{
      background: qlineargradient(x1:, y1:, x2:, y2:, stop:#6ea1f1, stop:  #5e8edf);
  }
  QTreeWidget::item:selected:!active {
      background: qlineargradient(x1:, y1:, x2:, y2:, stop:#6b9be8, stop:  #6c98da);
  }
  QTreeWidget::branch{
      background:white;
  }
  QTreeWidget::branch:has-siblings:!adjoins-item {
  border-image: url(:/images/vline.png);
  }
  QTreeWidget::branch:has-siblings:adjoins-item {
  border-image: url(:/images/branch-more.png);
  }
  QTreeWidget::branch:!has-children:!has-siblings:adjoins-item {
  border-image: url(:/images/branch-end.png);
  }
  QTreeWidget::branch:has-children:!has-siblings:closed,
  QTreeWidget::branch:closed:has-children:has-siblings {
  border-image: none;
  image: url(:/images/expand_16px.png);
  }
  QTreeWidget::branch:open:has-children:!has-siblings,
  QTreeWidget::branch:open:has-children:has-siblings {
  border-image: none;
  image: url(:/images/collapse_16px.png);
  }
  QProgressBar {
      border: 1px solid grey;
      border-radius: 5px;
      text-align: center;
      color: #;
  }
  QProgressBar::chunk{
      background-color: #10dc3b;
      width: 5px;
      margin: .5px;
  }
Qss 样式表的尝试的更多相关文章
- Qt系统对话框中文化及应用程序实现重启及使用QSS样式表文件及使用程序启动界面
		一.应用程序中文化 1).Qt安装目录下有一个目录translations/,在此目录下有qt_zh_CN.ts和 qt_zh_CN.qm把它们拷贝到你的工程目录下. 2).在main函数加入下列代码 ... 
- GUI学习之三十四——QSS样式表
		今天是一个大课题:QSS样式表 一.概念: QSS是Qt Style Sheet——Qt样式表,是用来自定义控件外观的一种机制;可以把他类比成CSS,但是不及其功能强大. 二.使用: 我们做一个模板, ... 
- QT源码剖析之QSS样式表
		1. "QApplication::setStyleSheet()"设置样式表: 1. 创建新的样式表. 2. 设置新的样式. void QApplication::setStyl ... 
- QSS 样式表 (一)
		在开发应用程序时,往往对界面的美观有一定的要求.Qt 引入了 QSS 机制,使得界面的美化工作变的轻轻松松.嗯,QSS听着有点耳熟.是的,QSS的语法和CSS类似.在此做些总结. 先来看一个简单的例子 ... 
- QSS样式表之PS黑色风格+白色风格+淡蓝色风格(开源)
		用QUI皮肤生成器制作皮肤,基本上不超过一分钟就可以生成一套自己想要的皮肤,只要设置八种颜色即可.本人非常喜欢这套黑色风格样式皮肤,特意分享出来,下载地址:https://download.csdn. ... 
- 【转】QT样式表 (QStyleSheet)
		作者:刘旭晖 Raymond 转载请注明出处Email:colorant@163.comBLOG:http://blog.csdn.net/colorant/ 除了子类化Style类,使用QT样式表( ... 
- Qt样式表使用注意项
		Qt样式表使用注意项 <1>.StyleSheet的使用StyleSheet文件的默认后缀名为qss,可以通过命令行参数-stylesheet filename.qss来设置样式表,也可以 ... 
- Qt样式表的使用
		Qt中可以灵活的使用层叠样式表(CSS),其语法和CSS很相似.因为HTML CSS的灵活性,所以可以很方便的为QT界面设计自己需要的外观.除了子类化Style类,使用QT样式表(QStyleShee ... 
- Qt 之 QSS(样式表语法)
		https://blog.csdn.net/liang19890820/article/details/51691212 简述 Qt样式表(以下统称QSS)的术语和语法规则几乎和CSS相同.如果你熟悉 ... 
随机推荐
- UWP 应用程序名称本地化以及商店显示名称本地化
			大家应该都知道,在做多语言的时候,我们一般会让App名字也会随着语言变化而本地化. 比如我的App微识别 https://www.microsoft.com/store/productId/9PDSN ... 
- Direct2D处理几何图形之间的碰撞检测(上)
			转载请注明出处:http://www.cnblogs.com/Ray1024 一.概述 Direct2D中支持以下几种类型的几何图形: a.简单几何图形(Simple Geometry):矩形.圆角矩 ... 
- ubuntu下安装pip install mysqlclient 报错 command "python setup.py egg_info" failed with error.....解决方案
			我的环境: ubuntu 1604 版本, 在黑屏终端已经安装了django和virtualenv虚拟环境, 在创建了django的models后开始迁移的操作, 出现错误, 错误代码最后如题目 可以 ... 
- Qt-网易云音乐界面实现-1 窗口隐藏拖拽移动,自定义标题栏
			最近也换了公司,也换了新的工作,工资也象征性的涨了一点点,但是最近心里还是慌慌,不知道为什么,没有那种踏实感,感觉自己随时可以被抛弃的感觉.感觉自己在荒废时间,也感觉自己在浪费生命. 为了让自己在被抛 ... 
- c语言数字图像处理(八):噪声模型及均值滤波器
			图像退化/复原过程模型 高斯噪声 PDF(概率密度函数) 生成高斯随机数序列 算法可参考<http://www.doc.ic.ac.uk/~wl/papers/07/csur07dt.pdf&g ... 
- 如何推行Code Review
			这篇文章探讨的是如何在一个没有Code Review习惯的团队里面Code Review. 在进行Code Review的时候,审核人很多时候会对被审核人的代码指手画脚,在评价对方的代码,甚至是在批评 ... 
- ceilometer 源码分析(polling)(O版)
			一.简单介绍ceilometer 这里长话短说, ceilometer是用来采集openstack下面各种资源的在某一时刻的资源值,比如云硬盘的大小等.下面是官网现在的架构图 这里除了ceilomet ... 
- python数据分析系列(2)--numpy
			NumPy(Numerical Python的简称)是Python数值计算最重要的基础包.大多数提供科学计算的包都是用NumPy的数组作为构建基础. NumPy的部分功能如下: ndarray,一个具 ... 
- Geatpy遗传算法在曲线寻优上的初步探究
			园子里关于遗传算法的教案不少,但基于geatpy框架的并未多见,故分享此文以作参考,还望广大园友多多指教! Geatpy出自三所名校联合团队之手,是遗传算法领域的权威框架(python),其效率之高. ... 
- watch命令详解
			基础命令学习目录首页 原文链接:https://www.cnblogs.com/kaishirenshi/p/7727986.html watch 命令详解: author:headsen chen ... 
