Qt常见皮肤qss代码(有Metro的风格)
##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的风格)的更多相关文章
- 漂亮的Qt控件 QSS代码例子
Qt Style Sheets Examples We will now see a few examples to get started with using Qt Style Sheets. S ...
- Qt界面美化 QSS
目前发现在Qt-Design中右击控件,可以选择Change StyleSheet ------------------------以下总结不太对 刚接触Qt,发现Qt Design无法对每个控件进行 ...
- Qt的皮肤设计(Style Sheet)
Qt的皮肤设计,也可以说是对Qt应用程序的界面美化,Qt使用了一种类CSS的样式规则QSS. 一.Style Sheet的应用 1.直接在程序代码中设置样式,利用setStyleSheet()方法 ...
- 常见.NET功能代码汇总 (2)
常见.NET功能代码汇总 23,获取和设置分级缓存 获取缓存:首先从本地缓存获取,如果没有,再去读取分布式缓存写缓存:同时写本地缓存和分布式缓存 private static T GetGradeCa ...
- qt简单界面更新代码(菜鸟级)(部分代码)
qt简单界面更新代码(菜鸟级)(部分代码)self.timers_1=QtCore.QTimer(self)self.timers_1.timeout.connect(self.min_1)self. ...
- 快速书写常见的 Kotlin 代码 MD
Markdown版本笔记 我的GitHub首页 我的博客 我的微信 我的邮箱 MyAndroidBlogs baiqiantao baiqiantao bqt20094 baiqiantao@sina ...
- Flask数据库常见关系模板代码
常见关系模板代码 以下罗列了使用关系型数据库中常见关系定义模板代码 一对多 示例场景: 用户与其发布的帖子(用户表与帖子表) 角色与所属于该角色的用户(角色表与多用户表) 示例代码 class Rol ...
- 收集Windows 8 Metro UI 风格网站资源,觉得不错的顶啊!!
这些资源包含:模板,框架,jQuery插件,图标集等.帮助你快速开发Windows 8 Metro UI风格的网站.本文转自虾米站长网 Frameworks & Templates For M ...
- 【今日推荐】10大流行的 Metro UI 风格的 Bootstrap 主题和模板
1. BootMetro 基于 Twitter Bootstrap 的简单灵活的 HTML.CSS 和 Javascript 框架,Win8 风格,大爱啊! 立即下载 效果演示 2. Boot ...
随机推荐
- 【22.73%】【codeforces 606D】Lazy Student
time limit per test2 seconds memory limit per test256 megabytes inputstandard input outputstandard o ...
- android之照相、相冊裁剪功能的实现过程
今天无聊做了一些照相.相冊裁剪功能,希望能够帮到大家! 不多说了,贴代码实际一点: 首先是XML: <ImageButton android:id="@+id/imageButton1 ...
- Node.js学习疑惑整理
1.Node.js 在调用某个包时,会首先检查包中 package.json 文件的 main 字段,将其作为 包的接口模块,如果 package.json 或 main 字段不存在,会尝试寻找 in ...
- GridLayout网格布局
网格布局特点: l 使容器中的各组件呈M行×N列的网格状分布. l 网格每列宽度相同,等于容器的宽度除以网格的列数. l 网格每行高度相同,等于容器的高度除以网格的行数. l 各组件的排列方式 ...
- ADO.NET- 中批量添加数据的几种实现方法比较
在.Net中经常会遇到批量添加数据,如将Excel中的数据导入数据库,直接在DataGridView控件中添加数据再保存到数据库等等. 方法一:一条一条循环添加 通常我们的第一反应是采用for或for ...
- jQuery迭代器
http://www.imooc.com/code/3417 迭代器 迭代器是一个框架的重要设计.我们经常需要提供一种方法顺序用来处理聚合对象中各个元素,而又不暴露该对象的内部,这也是设计模式中的迭代 ...
- WPF依赖属性值源(BaseValueSource)
原文:WPF依赖属性值源(BaseValueSource) WPF依赖属性提供一个机制,可以获取依赖属性提供值的来源 其以BaseValueSource枚举表示 1.Default public ...
- Valid page threshold based garbage collection for solid state drive
A method for garbage collection in a solid state drive (SSD) includes determining whether the SSD is ...
- Linux开关命令(shutdown,reboot,halt,init)
命令简短 shutdown,poweroff,reboot,halt,init都能够进行关机,大致使用方法. /sbin/halt [-n] [-w] [-d] [-f] [-i] [-p] ...
- CMake生成OpenCV解决方案&&编译OpenCV源码
生成OpenCV工程需要用到CMake,所以第一步需要下载CMake软件,下载链接:CMake下载 目前最新的版本是3.7.1,这里选择下载Platform下的Windows win32-x86 ZI ...




