Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

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

    General and Desktop
    3
    3
    670
    Loading More Posts
    • 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
      kevfu last edited by

      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 Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        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 Reply Quote 1
        • VRonin
          VRonin last edited by

          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 Reply Quote 0
          • First post
            Last post