Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-63387

Getting Native resolution when hdpi is enabled

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Won't Do
    • Not Evaluated
    • None
    • 5.9.0, 5.9.1
    • QPA
    • None
    • Android

    Description

      I am just porting an old application in which I need to know which display's resolution the application is running on.

      I just found out that Screen.width/height or the traditional way using QDesktopWidget they all return the adapted resolution and not the real one. For example I get 360x640 on S4 mini (that is also the native one) and on S5 (where the resolution is 1080x1920).

      Maybe is already there, but I think there should be properties along with the width/height that should return the native one, like for example nativeWidth.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            esabraha Eskil Abrahamsen Blomfeldt
            alterx Giovanni Romano
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes