Abhay_Salvi
11th May 2020, 14:13
All my fonts are appearing pixelated, so I used AntiAliasing but it isn't helping out. As you can see the pixelated font in the image itself:
13438
This is the code I am using:
butt1 = QtWidgets.QLabel("""Scrappr""")
font = QtGui.QFont()
font.setStyleStrategy(QtGui.QFont.PreferAntialias)
font.setPixelSize(22)
font.setFamily('Segoe UI Bold')
butt1.setFont(QtGui.QFont(font))
Edit 1: I also tried different combinations of ClearType text but It didn't work out, because for my PC, by default all the text appears good on windows and chrome but with Qt, it becomes pixelated. So it's probably not a windows problem...
The problem is something with Qt itself.
13438
This is the code I am using:
butt1 = QtWidgets.QLabel("""Scrappr""")
font = QtGui.QFont()
font.setStyleStrategy(QtGui.QFont.PreferAntialias)
font.setPixelSize(22)
font.setFamily('Segoe UI Bold')
butt1.setFont(QtGui.QFont(font))
Edit 1: I also tried different combinations of ClearType text but It didn't work out, because for my PC, by default all the text appears good on windows and chrome but with Qt, it becomes pixelated. So it's probably not a windows problem...
The problem is something with Qt itself.