当前位置:网站首页>QT:QSS自定义 QProgressBar实例
QT:QSS自定义 QProgressBar实例
2022-07-03 09:38:00 【C和C++技术博客】
QProgressBar 的边框、块和文本对齐可以使用样式表进行自定义。 但是,如果自定义了一个属性或子控件,则必须同时自定义所有其他属性或子控件。
将边框更改为灰色,将块更改为蔚蓝
QProgressBar {
border: 2px solid grey;
border-radius: 5px;
}
QProgressBar::chunk {
background-color: #05B8CC;
边栏推荐
猜你喜欢
Unity小组工程实践项目《最强外卖员》策划案&纠错文档
如何在游戏中制作一个血条
[untitled]
Drop out (pytoch)
Mysql5.7 installation and configuration tutorial (Graphic ultra detailed version)
UI interface design related knowledge (I)
Numpy realizes the classification of iris by perceptron
[untitled]
Unity group engineering practice project "the strongest takeaway" planning case & error correction document
A detailed explanation of vector derivative and matrix derivative
随机推荐
Multilayer perceptron (pytorch)
How does MySQL find the latest data row that meets the conditions?
Ind kwf first week
conda9.0+py2.7+tensorflow1.8.0
[untitled] numpy learning
Detailed cross validation and grid search -- sklearn implementation
Praise syllogism
深度学习入门之线性回归(PyTorch)
Numpy quick start (IV) -- random sampling and general functions
C project - dormitory management system (1)
Binary search method
[ultra detailed] implement soft and hard interval SVM based on sklearn
Flink <-->Redis的使用介绍+with参数
Numpy quick start (II) -- Introduction to array (creation of array + basic operation of array)
[combinatorial mathematics] pigeon nest principle (simple form examples of pigeon nest Principle 4 and 5)
Leetcode skimming ---75
Numpy quick start (III) -- array advanced operation
Weight decay (pytorch)
Jetson TX2 brush machine
8、 Transaction control language of MySQL