QT 5.4 Android : hidpi
On Android my QWidgets app is displayed very small (all controls/texts/etc...) when running on retina/hidpi device.
On iOs retina tablet it's ok.
Is there something to do on Android to make it work?
Thanks a lot
Actually it seems it was because the AVD wasn't set up correctly (wrong "Abstracted lcd density")
Unlike iOS , Qt in Android do not scale its content according to the DPI of screen. So the display unit of your application is still pixel , the DPI is ignored. Therefore , it will look very small on high DPI device.
It is suggested to use Android's display unit , dp , for your application to make it looks like an Android application.
You may find example code at :
For a cross-platform implementation of density-independent units and an overview how to support multiple screen sizes & densities, you can also see this blog post: