[Interest] Handling various displays on mobile...
igor.mironchik at gmail.com
Tue Jan 27 17:16:19 CET 2015
Hi, as Note 2 is an Android device you can check
QT_ANDROID_THEME_DISPLAY_DPI environment for DPI.
On Tue, 27 Jan 2015 18:53:19 +0300, Jason H <jhihn at gmx.com> wrote:
> I've spec'd the text my QML ui in points, and that works well. But the
> problem comes when i calculate padding and offsets in pixels. It looks
> great on my device (Note 2) but on newer devices with higher DPIs, the
> UI looks un-padded. I need a way to get the DPI so I can properly
> calculate spacing.
> How is that done in QML?
> Interest mailing list
> Interest at qt-project.org
More information about the Interest