当前位置:网站首页>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
边栏推荐
- 每天睡觉前30分钟阅读_day4_Files
- 大学生四六级作文模板(自创版,成功跨过六级)
- Read 30 minutes before going to bed every day_ day4_ Files
- MySQL事务
- Creation and jump of activity
- Insight into cloud native | microservices and microservice architecture
- 记录一下初次使用Xray的有趣过程
- Solutions to Chinese garbled code in CMD window
- Microservice practice | declarative service invocation openfeign practice
- View the port of the application published by was
猜你喜欢
Don't look for it. All the necessary plug-ins for Chrome browser are here
zk配置中心---Config Toolkit配置与使用
上班第一天的报错(AWVS卸载不彻底)
深入剖析JVM是如何执行Hello World的
Timed thread pool implements request merging
2837xd 代码生成——补充(3)
互联网API接口幂等设计
How to use pyqt5 to make a sensitive word detection tool
BugkuCTF-web24(解题思路及步骤)
From concept to method, the statistical learning method -- Chapter 3, k-nearest neighbor method
随机推荐
Amq6126 problem solving ideas
Typora installation package sharing
In depth analysis of how the JVM executes Hello World
tinyxml2 读取和修改文件
每天睡前30分钟阅读Day5_Map中全部Key值,全部Value值获取方式
C语言之数据插入
From concept to method, the statistical learning method -- Chapter 3, k-nearest neighbor method
DTM distributed transaction manager PHP collaboration client V0.1 beta release!!!
Matplotlib swordsman line - layout guide and multi map implementation (Updated)
MySql报错:unblock with mysqladmin flush-hosts
ZK configuration center -- configuration and use of config Toolkit
Elastic Stack之Beats(Filebeat、Metricbeat)、Kibana、Logstash教程
Activity的创建和跳转
Navicat 远程连接Mysql报错1045 - Access denied for user ‘root‘@‘222.173.220.236‘ (using password: YES)
CKEditor 4.10.1 上传图片提示“不正确的服务器响应” 问题解决
上班第一天的报错(AWVS卸载不彻底)
Number structure (C language) -- Chapter 4, compressed storage of matrices (Part 2)
How to choose between efficiency and correctness of these three implementation methods of distributed locks?
2837xd 代码生成——补充(3)
Timed thread pool implements request merging