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. Incorrect menu icon size for QuickControls 2 gallery app in Android x86 AVD Emulator

Incorrect menu icon size for QuickControls 2 gallery app in Android x86 AVD Emulator

Scheduled Pinned Locked Moved Solved Mobile and Embedded
quick2androidqt 5.7 rc
3 Posts 2 Posters 1.3k Views
  • 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.
  • O Offline
    O Offline
    oberluz
    wrote on 5 Jun 2016, 18:49 last edited by oberluz 6 May 2016, 20:23
    #1

    Hi,

    I've run the Qt Quick Controls 2 Gallery app for Android x86 in an AVD (Android Version 6 Marshmallow API 23, Rev , Emulator Version 22.1.6) and the size of the menu icons seem to be too small (see here)

    I am using Qt 5.7 RC. The app is not displayed correctly on devices with resolutions hdpi, xhdpi and xxhdpi. It only displays correctly if the DPI is 560 or thereabouts.

    The device pixel ratio reported by qApp->primaryScreen()->devicePixelRatio() is 1.5

    The gallery app enables high DPI scaling and I can see that in the gallery.qrc file there are icons for various resolutions which I understand Qt should be automatically selecting for the DPR in question.

    Unfortunatkey I don't have an Android phone these days to test further.

    Any ideas why it doesn't display correctly.

    Thanks

    1 Reply Last reply
    0
    • O Offline
      O Offline
      oberluz
      wrote on 6 Jun 2016, 20:07 last edited by
      #2

      After reading this post I now understand there is no built-in support for loading images for different dpi's in qt for android. Why there is for IOS but not for android is a mistery for me.

      1 Reply Last reply
      0
      • S Offline
        S Offline
        SGaist
        Lifetime Qt Champion
        wrote on 6 Jun 2016, 22:15 last edited by
        #3

        Hi,

        AFAIK and as silly as it may sound: because it's an iOS platform feature/constaint.

        It started with the Retina displays. iOS applications would have to provide these images if they wanted to support these displays.

        You can find more information about scalability here.

        Hope it helps

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        1

        1/3

        5 Jun 2016, 18:49

        • Login

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