##QTabWidget

  • 淡蓝色效果TabWidget(属性值lightblue)
QTabWidget[lightblue = "true"] QTabBar::tab{
border-top:1px solid rgb(249,249,249);
border-top-left-radius: 4px;
border-top-right-radius: 4px;
max-height:20px;
min-height:20px;
min-width:95px;
font-family:microsoft yahei;
color:rgb(50,50,50);
font-size:13px;
padding:0px 0px 0px 0px;
border-image:url();
margin: 0px;
padding-bottom:15px;
} QTabWidget[lightblue = "true"] QTabBar::tab:selected{
border-left:1px solid rgb(192,215,250);
border-right:1px solid rgb(192,215,250);
border-top:1px solid rgb(192,215,250);
color:rgb(50,50,50);
background-color:rgb(249,249,249);
font-size:13px;
border-image:url();
margin: 0px;
} QTabWidget[lightblue = "true"]::pane {
border-top: 1px solid rgb(192,215,250);
position: absolute;
top: -1px;
}

效果如下图所示: 

##QLabel

  • 蓝色标题Label(属性值blueTitle)
QLabel[blueTitle="true"]
{
font-size:18px;
font-family:Microsoft YaHei;
color:rgb(255,255,255);
background-color:rgb(5 ,112, 183 );
padding-left:25px;
}

效果图如下所示:

  • 淡灰色标题Label(属性值lightgrayTitle)
QLabel[lightgrayTitle="true"]
{
font-family:Microsoft YaHei;
font-size:16px;
background-color: rgb(207, 207, 207);
padding-left: 25px;
}

效果图如下所示:

##QPushbutton

  • 蓝色按钮(属性值blueButton)
QPushButton[blueButton="true"]
{
color:rgb(255,255,255);
border-radius:3px;
background-color:rgb(0,109,204);
font-family:Arial;
}
QPushButton[blueButton="true"]:hover
{
background-color:rgb(0 ,119, 224 );
}
QPushButton[blueButton="true"]:pressed
{
background-color:rgb(0 ,149 ,255 );
}

效果图如下所示:

  • 蓝框按钮(属性值)
QPushButton[blueBorderButton = "true"]
{
border:1px solid;
border-color:#afafaf;
font-family:microsoft yahei;
color:#555555
}
QPushButton[blueBorderButton = "true"]:hover
{
border:1px solid;
border-color:#11a9d6;
font-family:microsoft yahei;
color:#555555
}
QPushButton[blueBorderButton = "true"]:pressed
{
background-color:#11a9d6;
border:1px solid;
border-color:#afafaf;
font-family:microsoft yahei;
color:white
}

效果图如下所示:

  •   

QProgressBar

  • 淡红色进度条
QProgressBar[redProgressBar = "true"]{
color : solid gray;
border: 2px solid gray;
border-radius: 5px;
background: transparent;
padding: 0px;
text-align : center ;
}
QProgressBar[redProgressBar = "true"]::chunk{
background: #B22222;
}

http://daodaoliang.com/blog/2014/10/30/Qt%E5%B8%B8%E8%A7%81%E7%9A%AE%E8%82%A4%E7%9A%84QSS.html

Qt常见皮肤qss代码(有Metro的风格)的更多相关文章

  1. 漂亮的Qt控件 QSS代码例子

    Qt Style Sheets Examples We will now see a few examples to get started with using Qt Style Sheets. S ...

  2. Qt界面美化 QSS

    目前发现在Qt-Design中右击控件,可以选择Change StyleSheet ------------------------以下总结不太对 刚接触Qt,发现Qt Design无法对每个控件进行 ...

  3. Qt的皮肤设计(Style Sheet)

      Qt的皮肤设计,也可以说是对Qt应用程序的界面美化,Qt使用了一种类CSS的样式规则QSS. 一.Style Sheet的应用 1.直接在程序代码中设置样式,利用setStyleSheet()方法 ...

  4. 常见.NET功能代码汇总 (2)

    常见.NET功能代码汇总 23,获取和设置分级缓存 获取缓存:首先从本地缓存获取,如果没有,再去读取分布式缓存写缓存:同时写本地缓存和分布式缓存 private static T GetGradeCa ...

  5. qt简单界面更新代码(菜鸟级)(部分代码)

    qt简单界面更新代码(菜鸟级)(部分代码)self.timers_1=QtCore.QTimer(self)self.timers_1.timeout.connect(self.min_1)self. ...

  6. 快速书写常见的 Kotlin 代码 MD

    Markdown版本笔记 我的GitHub首页 我的博客 我的微信 我的邮箱 MyAndroidBlogs baiqiantao baiqiantao bqt20094 baiqiantao@sina ...

  7. Flask数据库常见关系模板代码

    常见关系模板代码 以下罗列了使用关系型数据库中常见关系定义模板代码 一对多 示例场景: 用户与其发布的帖子(用户表与帖子表) 角色与所属于该角色的用户(角色表与多用户表) 示例代码 class Rol ...

  8. 收集Windows 8 Metro UI 风格网站资源,觉得不错的顶啊!!

    这些资源包含:模板,框架,jQuery插件,图标集等.帮助你快速开发Windows 8 Metro UI风格的网站.本文转自虾米站长网 Frameworks & Templates For M ...

  9. 【今日推荐】10大流行的 Metro UI 风格的 Bootstrap 主题和模板

    1. BootMetro 基于 Twitter Bootstrap 的简单灵活的 HTML.CSS 和 Javascript 框架,Win8 风格,大爱啊! 立即下载     效果演示 2. Boot ...

随机推荐

  1. 卷积与反卷积、步长(stride)与重叠(overlap)

    1. 卷积与反卷积 如上图演示了卷积核反卷积的过程,定义输入矩阵为 I(4×4),卷积核为 K(3×3),输出矩阵为 O(2×2): 卷积的过程为:Conv(I,W)=O 反卷积的过称为:Deconv ...

  2. 【27.48%】【codeforces 699D】 Fix a Tree

    time limit per test2 seconds memory limit per test256 megabytes inputstandard input outputstandard o ...

  3. Oracle主键(Primary Key)使用详细的说明

    Oracle/PLSQL: 主键(Primary Key)说明 1 目标 通过演示样例解说怎样创建.删除.禁用和开启主键. 2 前言之-什么是主键 在Oracle中,主键指能唯一标识一条记录的单个数据 ...

  4. html head标签的内容跑到body标签中 , 并且body中多了个空格

    今天遇到一个奇怪的问题 , 就是在head标签中写的内容跑到body标签中 , 第一种也是经常遇到的情况就是编码 UTF-8 格式带BOM的 , 这种情况是会多一个空格 , 这个基本都知道 , 按ut ...

  5. HDU1078 FatMouse and Cheese 【内存搜索】

    FatMouse and Cheese Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Othe ...

  6. Mybatis使用TypeHandler实现数据的加解密转换

    参考: MyBatis之TypeHandler: https://www.cnblogs.com/yulinfeng/p/5991170.html   前段时间收到这么个需求:为安全起见,要求在数据库 ...

  7. OpenGL(二十四) VAO、VBO和着色器使用示例

    1. 新建一个工程,新建一个头文件Shader.h,内容如下: #ifndef _SHADER_H_ #define _SHADER_H_ #include <vector> #inclu ...

  8. 如何使用GDI绘制半透明矩形

    /*使用GDI绘制半透明矩形*/ void CDirectXDraw::DrawHalfOpacityRect(HDC hdc,CRect rect) { CDC dc; dc.Attach(hdc) ...

  9. JAVA学习第三十三课(经常使用对象API) —迭代器

    数字有非常多用数组存,对象有非常多就要用集合存 可是数组是固定长度的,集合是可变长度的 集合的由来: 对象用来封装特有数据,对象多了须要存储,假设对象个数不确定,就须要使用集合容器来存储 集合的特点: ...

  10. Win32 键盘事件 - 击键消息、字符消息、插入符号(光标)

    注:以下内容为学习笔记,多数是从书本.资料中得来,只为加深印象,及日后参考.然而本人表达能力较差,写的不好.因非翻译.非转载,只好选原创,但多数乃摘抄,实为惭愧.但若能帮助一二访客,幸甚! 以下内容主 ...