View Single Post
Old 05-22-2025, 12:36 AM   #9
jslmsca
All Star Reserve
 
Join Date: Nov 2013
Location: Calgary
Posts: 587
Here's what ChatGPT suggests after examining the trace file:
===============================================

FHM 11 on Apple Silicon macOS – Blurry Text Diagnosis
After inspecting the trace log and visual output, the cause of blurry text appears to be that the app is not rendering at the correct device pixel ratio (DPR) on Retina (HiDPI) displays.

The trace shows:
DPR: 1

On a MacBook Air M2 and iMac M1, this should be:
DPR: 2

This suggests the Qt OpenGL context or main application window is not initialized with Retina support, despite Qt::AA_EnableHighDpiScaling being set. macOS is likely upscaling 1x-rendered UI elements, which explains the softness/blurriness.

Recommended Fixes:
Ensure the Info.plist inside the .app bundle includes:
<key>NSHighResolutionCapable</key>
<true/>

Use QGuiApplication::setAttribute(Qt::AA_UseHighDpiPix maps) before app creation.

Consider switching from Qt::AA_UseDesktopOpenGL to Qt::AA_UseSoftwareOpenGL or test with Qt::AA_UseOpenGLES on Metal-backed macOS.

Explicitly log QGuiApplication::devicePixelRatio() and QWindow::devicePixelRatio() to confirm the framework is recognizing Retina screens.

If running in a sandboxed environment (com.ootpdevelopments.fhm11macqlm), ensure proper entitlements for UI scaling and screen access are enabled.
jslmsca is offline   Reply With Quote