QSS常用属性

  1. font15px "Segoe UI";                           /* 字体:大小 名称 */  
  2.    font-family"Segoe UI";                     /* 字体名称 */  
  3.      
  4.    padding4px;                                    /* 文字边距 */  
  5.    padding-left5px;                               /* 文字左边距 */  
  6.    padding-right10px;                         /* 文字右边距 */  
  7.    padding-top3px;                                /* 文字顶边距 */  
  8.    padding-bottom3px;                         /* 文字底边距 */  
  9.    color#F5F5F5;                                  /* 前景(文本)颜色 */  
  10.    color: qlineargradient();                        /* 前景(文本)颜色:线性渐变*/  
  11.    color: qradialgradient();                        /* 前景(文本)颜色:辐射渐变*/  
  12.    color: qconicalgradient();                       /* 前景(文本)颜色:梯形渐变*/  
  13.   
  14.    background-color#202122;                       /* 背景颜色 */  
  15.    background-color: qlineargradient();         /* 背景颜色:线性渐变*/  
  16.    background-color: qradialgradient();         /* 背景颜色:辐射渐变*/  
  17.    background-color: qconicalgradient();            /* 背景颜色:梯形渐变*/  
  18.   
  19.    background-image:url(boder.png);                 /* 背景图片 */  
  20.    background-position: ;                           /* 背景图片对齐方式 */  
  21.    background-repeat: ;                         /* 背景图片平铺方式 */  
  22.   
  23.    border1px solid #FDBC03;                   /* 边框:宽度 颜色*/  
  24. border-image:url(boder.png) 4 8 12 16;          /* 边界图 切线 */  
  25.    border-radius: 4px;                          /* 角弧度 */  
  26.    border-top-left-radius: ;                        /* 角弧度:左上角*/  
  27.    border-top-right-radius: ;                       /* 角弧度:右上角*/  
  28.    border-bottom-left-radius: ;                 /* 角弧度:左下角*/  
  29.    border-bottom-right-radius: ;                    /* 角弧度:右下角*/  
  30.   
  31. min-width65px;                                /* 宽度 */  
  32. min-height12px;                               /* 高度 */  

你可能感兴趣的:(Qt专栏,QSS)