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 out. As you can see the pixelated font 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, 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.
    Last edited by Abhay_Salvi; 11th May 2020 at 14:18.

Similar Threads

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

Tags for this Thread


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.