Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. devicePixelRatio = 1 (wrong) for macbook retina display. Images and text blurred.

devicePixelRatio = 1 (wrong) for macbook retina display. Images and text blurred.

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 3 Posters 911 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    kevfu
    wrote on last edited by
    #1

    Hi I've been working on an application in Qt for a few months now and out of nowhere it started rendering fonts and icons blurry. I checked my logs where I spit out the devicePixelRatio of the main window's screen and instead of being 2 (which it was before - I am developing on a retina macbook) it is now 1 (same machine).

    my Info.plist file has:

    <key>NSPrincipalClass</key>
    <string>NSApplication</string>
    <key>NSHighResolutionCapable</key>
    <string>True</string>

    as well as in main.cpp I am setting my application to use highdpi:

    a.setAttribute(Qt::AA_UseHighDpiPixmaps);

    Any help very much appreciated!

    Thanks,
    k

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Which version of Qt are you using ? On which version of OS X ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1
      • VRoninV Offline
        VRoninV Offline
        VRonin
        wrote on last edited by
        #3

        Might it be due to this known issue? https://bugreports.qt.io/browse/QTBUG-37095

        "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
        ~Napoleon Bonaparte

        On a crusade to banish setIndexWidget() from the holy land of Qt

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved