当前位置:网站首页>QT elidedtext only works for Chinese conformity, but not for English
QT elidedtext only works for Chinese conformity, but not for English
2022-06-23 05:04:00 【Brother Dashi】
QString strNodeName = “ Only for Chinese to meet your role ”;
//QString strNodeName = “only yuo only yuo only yuoonly yuo only yuo only yuo ”;
const QString elidedIdNew = fm.elidedText(strNodeName,
Qt::ElideMiddle,
100);I find it doesn't work for English at all , At first I thought there was a problem with the width , After printing out the width, it is found that it is also normal , I finally found out that , Imaged
pixelSize() by 0
qreal nPix = painter->font().pixelSize();
qDebug("nPix %d", nPix);Set the font size you want before calling the solution :
QFont font = painter->font();
//TODO: change font size
font.setPixelSize(9);
painter->setFont(font);Problem solving
边栏推荐
- Summary of switched reluctance motor suspension drive ir2128
- Freemodbus parsing 1
- 物体结构图,快速图解物体内部结构
- 【Proteus仿真】Arduino UNO+PCF8574+LCD1602+MPX4250电子秤
- How to better organize the minimum web api code structure
- 【图像融合】基于非凸罚分的稀疏正则化实现图像融合附matlab代码
- Shadertoy basic teaching 02. Drawing smiling faces
- 笔者认为所谓的产业互联网,就是一个产业与互联网深度融合的过程
- 2022-06-22:golang选择题,以下golang代码输出什么?A:3;B:1;C:4;D:编译失败。 package main import ( “fmt“ ) func mai
- The paddepaddle model is deployed in a service-oriented manner. After restarting the pipeline, an error is reported, and the TRT error is reported
猜你喜欢

元数据管理Apache Atlas编译(内嵌式)部署及遇到各种错误记录

Please use the NLTK Downloader to obtain the resource

Openwrt directory structure

Receive incoming files and download (simple usage) a tag

mysql json

怎样利用数据讲一个精彩故事?

mysql json

Flask基础:环境搭建+配置+URL与试图之间的映射+重定向+数据库连接

The solution to prompt "this dictionary creation could be rewritten as a dictionary literal" when updating the dictionary key value in pychart

centos7安装postgresql8.2.15及存储过程创建
随机推荐
接收传来得文件并下载(简单用法)a标签
centos7部署docker,安装mysql
Alkylation process test questions and simulation test in 2022
ICer技能03Design Compile
ApiPost接口测试的用法之------Get
Banner banner
Gson typeadapter adapter
自举驱动、top开关电源、光耦拾遗
Abnova fluorescent dye 510-m streptavidin scheme
free( )的一个理解(《C Primer Plus》的一个错误)
[graph theory] - bipartite graph
DO280OpenShift命令及故障排查--常见故障排除和章节实验
Const understanding one
Receive incoming files and download (simple usage) a tag
The solution to prompt "this dictionary creation could be rewritten as a dictionary literal" when updating the dictionary key value in pychart
Chrome debugging tips
【Proteus仿真】Arduino UNO+PCF8574+LCD1602+MPX4250电子秤
Can bus Basics
Using editor How to handle MD uploading pictures?
AD9使用技巧拾遗