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. Mobile scaling issue
Forum Updated to NodeBB v4.3 + New Features

Mobile scaling issue

Scheduled Pinned Locked Moved Mobile and Embedded
4 Posts 3 Posters 948 Views 2 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.
  • T Offline
    T Offline
    Tibblist
    wrote on last edited by
    #1

    I have been having trouble getting an app to scale properly on my galaxy s4 active. Recently I tried several example apps and all of them seem to improperly scale as well. Could this be a problem with my device (all other apps work fine) or a problem during compilation that doesn't cause failure?

    E 1 Reply Last reply
    0
    • T Tibblist

      I have been having trouble getting an app to scale properly on my galaxy s4 active. Recently I tried several example apps and all of them seem to improperly scale as well. Could this be a problem with my device (all other apps work fine) or a problem during compilation that doesn't cause failure?

      E Offline
      E Offline
      Emidida
      wrote on last edited by
      #2

      @Tibblist Are you doing this with widgets and C++? usually you will need to use preferred sizepolicy and have a clever design to make it work with the widgets. A standard desktop program would probably not look good on android. My advise try different types of design, get to know how sizepolicy works in qt.

      1 Reply Last reply
      0
      • T Offline
        T Offline
        Tibblist
        wrote on last edited by
        #3

        This seems to happen with QT apps as well like the calculator app they made which doesn't seem to have any meaningful C++ added as well also I would assume they designed it cleverly. Is there any baseline I could use to test if a normal app designed well works?

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

          Qt do not handle the scaling on Android platform. You need to scale your content according to the DP value of your device.

          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