Abhay_Salvi
11th May 2020, 12:19
All my fonts are appearing pixelated, so I used AntiAliasing but it isn't helping. As you can see in the image itself:
13437
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. I think because for me, 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...
13437
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. I think because for me, 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...