当前位置:网站首页>QT qlabel style settings
QT qlabel style settings
2022-07-02 09:38:00 【Ignorant dream fireworks】

Need to set up error The style of
Set the style

color:rgb(255, 0, 0);
font-size:12pt;
font-family:Microsoft YaHei;
typeface 、 Color is also available through Rich text Set in the program
emit LoginError(QStringLiteral("<font style='font-size:12px; color:red;'> user name 、 Wrong password !</font>"));
for example :
Implementation method :
ui.mSizeLabel->setText(QStringLiteral("< font style='color:black; font-weight:normal;'> Saved </font>")
+ "< font style = 'color:#5B8FF9; font-weight:bold;'>"+QString::number(_currSize)
+ "< / font > "+ QStringLiteral("< font style='color:black; font-weight:normal;'> Zhang </font>" ));
Center text , Use qt Of Designer, Set horizontal and vertical center 
边栏推荐
- Statistical learning methods - Chapter 5, decision tree model and learning (Part 1)
- The channel cannot be viewed when the queue manager is running
- BugkuCTF-web24(解题思路及步骤)
- 别找了,Chrome浏览器必装插件都在这了
- 道阻且长,行则将至
- kinect dk 获取CV::Mat格式的彩色RGB图像(openpose中使用)
- Idempotent design of Internet API interface
- Typora安装包分享
- 互联网API接口幂等设计
- Read Day6 30 minutes before going to bed every day_ Day6_ Date_ Calendar_ LocalDate_ TimeStamp_ LocalTime
猜你喜欢

Hystrix implements request consolidation

Matplotlib swordsman - a stylist who can draw without tools and code

自定義Redis連接池

Ora-12514 problem solving method

Chrome video download Plug-in – video downloader for Chrome

Matplotlib swordsman line - layout guide and multi map implementation (Updated)

Redis installation and deployment (windows/linux)

kinect dk 获取CV::Mat格式的彩色RGB图像(openpose中使用)

Enterprise level SaaS CRM implementation

别找了,Chrome浏览器必装插件都在这了
随机推荐
上班第一天的报错(AWVS卸载不彻底)
ZK configuration center -- configuration and use of config Toolkit
Required request body is missing: (cross domain problem)
[go practical basis] how to customize and use a middleware in gin
记录下对游戏主机配置的个人理解与心得
每天睡觉前30分钟阅读_day3_Files
Mathematics in machine learning -- point estimation (I): basic knowledge
Knowledge points are very detailed (code is annotated) number structure (C language) -- Chapter 3, stack and queue
From concept to method, the statistical learning method -- Chapter 3, k-nearest neighbor method
How to use PHP spoole to implement millisecond scheduled tasks
Idempotent design of Internet API interface
A detailed explanation takes you to reproduce the statistical learning method again -- Chapter 2, perceptron model
深入剖析JVM是如何执行Hello World的
Redis 序列化 GenericJackson2JsonRedisSerializer和Jackson2JsonRedisSerializer的区别
VIM操作命令大全
互联网API接口幂等设计
Microservice practice | declarative service invocation openfeign practice
Redis installation and deployment (windows/linux)
Machine learning practice: is Mermaid a love movie or an action movie? KNN announces the answer
Knife4j 2.X版本文件上传无选择文件控件问题解决