Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. QT 5.4 Android : hidpi
Forum Updated to NodeBB v4.3 + New Features

QT 5.4 Android : hidpi

Scheduled Pinned Locked Moved Mobile and Embedded
4 Posts 3 Posters 1.6k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    mkdotcom
    wrote on last edited by
    #1

    Hello
    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

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mkdotcom
      wrote on last edited by
      #2

      Actually it seems it was because the AVD wasn't set up correctly (wrong "Abstracted lcd density")

      1 Reply Last reply
      0
      • benlauB Offline
        benlauB Offline
        benlau
        Qt Champions 2016
        wrote on last edited by
        #3

        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 :

        https://github.com/benlau/quickandroid/tree/master/tests/quickandroidexample

        1 Reply Last reply
        0
        • F Offline
          F Offline
          feldifux
          wrote on last edited by
          #4

          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:

          http://v-play.net/2014/11/supporting-multiple-screen-sizes-and-screen-densities-with-qt-and-v-play/

          Founder of Felgo SDK - http://felgo.com/qt

          Felgo simplifies

          • Mobile App Dev with Qt esp. iOS & Android
          • Game Development with Qt

          What others say

          Felgo scored #1 in Cross-Platform App Development Tools Report - see why: https://goo.gl/rgp3rq

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved