Qt Improvements Forthcoming For HiDPI Displays

Written by Michael Larabel in Qt on 14 November 2014 at 04:43 AM EST. 4 Comments
The upcoming Qt 5.4 release betters the support for HiDPI monitors -- displays like the Retina MacBook Pro and others with high pixel densities -- though Qt5 developers need to make some changes to their code to take advantage of these improvements.

For those using HiDPI displays or if you're just a Qt5 developer looking to ensure your application is very portable, with Qt 5.4 there is the concept of device independent pixels with a scaling factor to accomodate devices at non-standard pixel densities.

Qt5 applications need to opt into using high DPI pixmap support so their users can take advantage of such features. Those with these high-DPI displays can set the DPI under their system settings and also adjust the pixel ratio with the QT_DEVICE_PIXEL_RATIO environment variable.

More details on this work can be found via David Edmundson's blog.
Related News
About The Author
Michael Larabel

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter, LinkedIn, or contacted via MichaelLarabel.com.

Popular News This Week