当前位置:网站首页>QT控件样式系列(一)之QSlider
QT控件样式系列(一)之QSlider
2022-07-06 23:01:00 【PHP代码】
系列文章目录
最近做QT开发,项目做的很急,很多东西都是直接百度之后直接拿来用,根本没认真看,现在有空了来整理一波,主要记录控件常用样式,方便后续查阅
文章目录
系列文章目录
前言
一、通用QT样式
1.QSS文本属性
2.QSS背景属性
3.QSS边框属性
4.QSS Box 属性
5.QSS 字体属性
6.QSS 外边框属性
7.QSS 内边框属性
8.QSS 位置属性
前言
该篇记录QSlider常用的样式,我都是用的贴图,第一部分可以跳过,是我在网上搜索的样式
一、通用QT样式
1.QSS文本属性
属性 描述
color 设置文本的颜色
direction 规定文本的方向/书写方向
letter-spacing 设置字符间距
line-height 设置行高
text-align 规定文本的水平对齐方式
text-decoration 添加到文本的装饰效果
text-indent 规定文本块首行的缩进
text-shadow 规定添加到文本的阴影效果
2.QSS背景属性
属性 描述
background 在一个声明中设置所有的背景属性
background-attachment 设置背景图像是否固定或者随着页面的其余部分滚动
background-color 设置元素的背景颜色
background-image 设置元素的背景图像
background-position 设置背景图像的开始位置
background-repeat 设置是否及如何重复背景图像
background-clip 规定背景的绘制区域
3.QSS边框属性
属性 描述
border 在一个声明中设置所有的边框属性
border-bottom 在一个声明中设置所有的下边框属性
border-bottom-color 设置下边框颜色
border-bottom-style 设置下边框样式
border-bottom-width 设置下边框的宽度
border-color 设置四条变量的颜色
border-left/right/top 同理,在一个声明中设置所有的左/右/上边框属性
4.QSS Box 属性
属性 描述
overflow-x 如果内容溢出了元素内容区域,是否对内容的左/右边缘进行裁剪
overflow-y 如果内容溢出了元素内容区域,是否对内容的上/下边缘进行裁剪
overflow-style 规定溢出元素的首选滚动方法
border-bottom-style 设置下边框样式
rotation 围绕由 rotation-point 属性定义的点对元素进行旋转
rotation-point 定义距离上左边框边缘的偏移点
5.QSS 字体属性
属性 描述
font 在一个声明中设置所有的字体属性
font-family 规定文本的字体系列
font-size 规定文本的字体尺寸
font-size-adjust 为元素规定 aspect 值
font-stretch 收缩或拉伸当前的字体系列
font-style 规定文本的字体样式
font-variant 规定是否以小型大写字母的字体显示文本
font-weight 规定字体的粗细
6.QSS 外边框属性
属性 描述
margin 在一个声明中设置所有外边距属性
margin-bottom 设置元素的下外边距
margin-left 设置元素的左外边距
margin-right 设置元素的右外边距
margin-top 设置元素的上外边距
7.QSS 内边框属性
属性 描述
padding 在一个声明中设置所有内边距属性
padding-bottom 设置元素的下内边距
padding-left 设置元素的左内边距
padding-right 设置元素的右内边距
padding-top 设置元素的上内边距
8.QSS 位置属性
属性 描述
bottom 设置定位元素下外边距边界与其包含块下边界之间的偏移
clear 规定元素的哪一侧不允许其他浮动元素
clip 裁剪绝对定位元素
cursor 规定要显示的光标的类型(形状)
display 规定元素应该生成的框的类型
float 规定元素应该生成的框的类型
left 设置定位元素左外边距边界与其包含块左边界之间的偏移
overflow 规定当前内容溢出元素框时发生的事件
边栏推荐
- STM32 system timer flashing LED
- Chapter 9 Yunji datacanvas was rated as 36 krypton "the hard core technology enterprise most concerned by investors"
- npm ERR! 400 Bad Request - PUT xxx - “devDependencies“ dep “xx“ is not a valid dependency name
- App embedded H5 --- iPhone soft keyboard blocks input text
- PLC Analog output analog output FB analog2nda (Mitsubishi FX3U)
- U++ 元数据说明符 学习笔记
- 史上最全学习率调整策略lr_scheduler
- 【问道】编译原理
- 装饰器基础学习02
- If you‘re running pod install manually, make sure flutter pub get is executed first.
猜你喜欢
Operand of null-aware operation ‘!‘ has type ‘SchedulerBinding‘ which excludes null.
How to package the parsed Excel data into objects and write this object set into the database?
Error: No named parameter with the name ‘foregroundColor‘
Flask project uses flask socketio exception: typeerror: function() argument 1 must be code, not str
Pointer and array are input in function to realize reverse order output
[Android kotlin collaboration] use coroutinecontext to realize the retry logic after a network request fails
Liste des hôtes d'inventaire dans ansible (je vous souhaite des fleurs et de la romance sans fin)
IMS data channel concept of 5g vonr+
使用知云阅读器翻译统计遗传学书籍
Monitoring cannot be started after Oracle modifies the computer name
随机推荐
leetcode 53. Maximum subarray maximum subarray sum (medium)
Weebly mobile website editor mobile browsing New Era
史上最全学习率调整策略lr_scheduler
Techniques d'utilisation de sublime
【PHP SPL笔记】
If you ask me about R code debugging, I will tell you head, STR, help
【二叉树】二叉树寻路
Leetcode longest public prefix
【ArcGIS教程】专题图制作-人口密度分布图——人口密度分析
Function pointer and pointer function in C language
Mysql database (basic)
LabVIEW在打开一个新的引用,提示内存已满
STM32封装ESP8266一键配置函数:实现实现AP模式和STA模式切换、服务器与客户端创建
ThinkPHP关联预载入with
Stm32f103ze+sht30 detection of ambient temperature and humidity (IIC simulation sequence)
U++4 interface learning notes
Operand of null-aware operation ‘!‘ has type ‘SchedulerBinding‘ which excludes null.
npm ERR! 400 Bad Request - PUT xxx - “devDependencies“ dep “xx“ is not a valid dependency name
A row of code r shows the table of Cox regression model
Markdown editor