Results 1 to 3 of 3

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

  1. #1
    Join Date
    May 2020
    Posts
    4
    Qt products
    Qt5
    Platforms
    Windows

    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:

    oNkvk.png

    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.

  2. #2
    Join Date
    Jan 2006
    Location
    Bremen, Germany
    Posts
    502
    Thanked 75 Times in 71 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Why fonts in Qt are appearing blurry or pixelated?


  3. #3
    Join Date
    May 2020
    Posts
    4
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: Why fonts in Qt are appearing blurry or pixelated?

    Yeah, I did that by mistake. But I don't know how to delete the post. I searched on google but nothing helped me. I want to delete the post from the Newbie section.
    Thanks...

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

Bookmarks

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.