如何在 Qlabel 上启用抗锯齿功能?
我的 QLabels 看起来很丑,似乎没有抗锯齿。如何启用此功能(假设可用)?
My QLabels look quite ugly, it seems that there's no anti-aliasing. How can I enable this feature (assuming it's available)?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您还可以更改应用程序字体设置,以应用于您使用的所有小部件...
you may also alter application font settings, to be applied to all widgets you use...
您可以将标签字体中的 Antialiasing 属性设置为 PreferAntialias。
您可以在 QtCreator 中或通过这样的代码来完成:
希望这有帮助
You can set the Antialisasing attribute in the label's font to PreferAntialias.
You can do it in QtCreator or by code like this :
Hope this helps