当前位置:网站首页>QT irregular shape antialiasing
QT irregular shape antialiasing
2022-06-23 07:58:00 【Love life love you】
Many people on the Internet use the following methods :( Other code is ignored here )
QPainter painter(this);
// Enable anti aliasing
painter.setRenderHint(QPainter::Antialiasing, true);// Some are not here trueBut it has been tested and compared , Sawtooth still exists , such as QLabel When you put an irregular figure and rotate it, the sawtooth still exists ;
After my test , After modifying the parameters, the rotation saw tooth disappears under the above conditions , The following code :
QPainter painter(this);
// Enable anti aliasing
painter.setRenderHint(QPainter::SmoothPixmapTransform);// Modify here Use effect comparison :
( Before using )
( After using )
Although it can not be achieved completely without sawtooth , But the effect is much better than before .
ha-ha , come on. ! Oulige !
边栏推荐
- three. Solution to stripe shadow and grid shadow in JS
- Acwing第 56 場周賽【完結】
- YGG Spain subdao Ola GG officially established
- Hcip Road
- View the file once a second and send the result of the last line of the file to the syslog server
- 1. probability theory - combination analysis
- C# 内存法复制图像bitmap
- YGG 西班牙 subDAO——Ola GG 正式成立
- 华为云服务器弹性公网IP无法ping
- Active Directory之AD对象
猜你喜欢

忽略超长参数违规

一篇文章学会er图绘制

Matlab random volatility SV, GARCH using MCMC Markov chain Monte Carlo method to analyze exchange rate time series

Start appium

《一周的朋友》

openvino系列 19. OpenVINO 与 PaddleOCR 实现视频实时OCR处理

1278_ FreeRTOS_ Understand the delayed task with the prvaddcurrenttasktodelayedlist interface

SQL注入常用到的绕过方式-ctf

Rotary table visual screening machine and its image recognition system

Friends of the week
随机推荐
[cloud computing event] vocational skill competition -- container development example pig rapid development framework
The Sandbox 与《足球小将》达成合作,将流行的足球漫画及动画带入元宇宙
2022 final examination of software project management of School of software, Shandong University (recall version)
AVL树的实现
YGG Spain subdao Ola GG officially established
ArcMap批量删除距离较近的点
imperva-查找正则匹配超时的方法
google常用语法
Tri rapide + Tri par bulle + Tri par insertion + Tri par sélection
Deploy kubersphere in kubernetes
抓包发现tcp会话中老是出现重复的ack和大量的tcp重传——SACK(Selective Acknowledgment, 选择性确认)技术
For loop of go language foundation
MIT CMS.300 Session 12 – IDENTITY CONSTRUCTION 虚拟世界中身份认同的建立 part 2
Introduction to Excel VBA and practical examples
快速删除代码里面的node_modules
MySQL获取系统时间段
2. probability theory - axiom of probability theory
MySQL slow query record
Acwing game 56 [End]
NFS special attention to permissions