[Development] Retina display

Jason Dictos jdictos at barracuda.com
Tue Jun 12 18:01:10 CEST 2012


So I built qt from source, and build with cmake using my own Info.plist for our app bundle (and I don't use Qt as a framework).

How would I enable hidpi mode in Qt? We tested it and ours is definitely not rendering any higher rest widgets or anything.

-Jason

-----Original Message-----
From: development-bounces+jdictos=barracuda.com at qt-project.org [mailto:development-bounces+jdictos=barracuda.com at qt-project.org] On Behalf Of morten.sorvig at nokia.com
Sent: Tuesday, June 12, 2012 9:05 AM
To: development at qt-project.org
Subject: Re: [Development] Retina display

On Jun 11, 2012, at 8:30 PM, ext Jason Dictos wrote:

> You can actually run it now, on any mac:
> 
> http://www.redmondpie.com/how-to-enable-hidpi-display-mode-retina-like-in-os-x-lion-video/

In my experience Qt 4 looks good on HiDPI displays  - you get high resolution text and Mac style. QPainter and GraphicsView draws high resolution content (there seems to be an issue with cosmetic pens though) This is all tested with the emulated mode on a normal-dpi monitor.

Some caveats: OpenGL content is standard resolution. The app bundle/Info.plist generated by Qt seems to disable HiDPI support somehow. As a workaround build with CONFIG -= app_bundle or copy the executable out of the bundle and run it directly.

> 
> It's been a long time coming actually.
> 

QIcon has had scale factor support on Mac since the talk was about non-integer scale factors. (2007?) Perhaps it will finally pay off :)

Morten
_______________________________________________
Development mailing list
Development at qt-project.org
http://lists.qt-project.org/mailman/listinfo/development

'Like' us on Facebook for exclusive content and other resources on all Barracuda Networks solutions.
Visit http://barracudanetworks.com/facebook





More information about the Development mailing list