Results 1 to 3 of 3

Thread: Why fonts in Qt are appearing blurry or pixelated?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    May 2020
    Qt products

    Exclamation Why fonts in Qt are appearing blurry or pixelated?

    All my fonts are appearing pixelated, so I used AntiAliasing but it isn't helping. As you can see in the image itself:


    This is the code I am using:

    Qt Code:
    1. butt1 = QtWidgets.QLabel("""Scrappr""")
    2. font = QtGui.QFont()
    3. font.setStyleStrategy(QtGui.QFont.PreferAntialias)
    4. font.setPixelSize(22)
    5. font.setFamily('Segoe UI Bold')
    6. butt1.setFont(QtGui.QFont(font))
    To copy to clipboard, switch view to plain text mode 

    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...
    Last edited by Abhay_Salvi; 11th May 2020 at 14:13.

Similar Threads

  1. Adding Arabic fonts and CJK (China Japan Korean) fonts
    By kishore7771 in forum Qt Programming
    Replies: 0
    Last Post: 30th July 2013, 18:33
  2. Replies: 9
    Last Post: 14th June 2013, 08:18
  3. modern blurry traslucent effect... it is possible on QT?
    By javimoya in forum Qt Programming
    Replies: 2
    Last Post: 18th December 2010, 00:09
  4. transparent QScrollArea and blurry scrolling
    By titanandrews in forum Qt Programming
    Replies: 2
    Last Post: 17th January 2010, 00:35
  5. Windows not appearing in XP.
    By beardybloke in forum Qt Programming
    Replies: 7
    Last Post: 24th October 2007, 17:32


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.