Results 1 to 5 of 5

Thread: Question about screen resolution, dpi and font size

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #4
    Join Date
    Oct 2009
    Location
    Germany
    Posts
    120
    Thanked 42 Times in 41 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Question about screen resolution, dpi and font size

    Hello,

    I had the same problem using a 4k monitor and Qt 5.5 under Windows 10. As a temporary workaround I installed a file qt.conf into the application binary folder with following content:
    Qt Code:
    1. [Platforms]
    2. WindowsArguments = dpiawareness=0
    To copy to clipboard, switch view to plain text mode 
    With this setting Windows scales the whole application (fonts + graphics). Drawback of this approach: the fonts do not look as crisp as possible, but it is acceptable for scalings of 125-150%.

    Qt 5.6 should provide better dpi awareness. I tried it a few months ago with a Qt 5.6 beta version and without installing the qt.conf file. The result was better than with version 5.5, but still not perfect. Hopefully it has improved for the released version, but I have not checked it up to now.

    Best regards
    ars

  2. The following 2 users say thank you to ars for this useful post:

    d_stranz (14th April 2016), pixaeiro (13th April 2016)

Similar Threads

  1. Qt Creator Welcome screen and help screen font size
    By zd3nik in forum Qt Tools
    Replies: 0
    Last Post: 23rd November 2013, 17:57
  2. Font size according to the resolution
    By pssss in forum Qt Programming
    Replies: 0
    Last Post: 2nd September 2011, 10:07
  3. Windows Mobile VGA Screen font size problem
    By LordG in forum Qt for Embedded and Mobile
    Replies: 1
    Last Post: 25th November 2010, 09:13
  4. Replies: 8
    Last Post: 20th June 2010, 19:15
  5. Replies: 1
    Last Post: 27th March 2008, 15:10

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
  •  
Qt is a trademark of The Qt Company.