Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Force the resolution of my QML application
Forum Updated to NodeBB v4.3 + New Features

Force the resolution of my QML application

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
2 Posts 2 Posters 286 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.
  • DropNodD Offline
    DropNodD Offline
    DropNod
    wrote on last edited by
    #1

    Hello, I have a problem with the resolution of my QML application. I develloped my application on a phone in 720p, everything was well positioned. I then tested my application on a phone with a 1080p screen and I saw that the application did not run in 720p but in 1080p. The window was in a corner at the top left, it did not rescaled. My question is: Is it possible to force the application to shoot in 720p even on 1080p phones?

    Thank you in advance for your answers =)

    1 Reply Last reply
    0
    • Pradeep P NP Offline
      Pradeep P NP Offline
      Pradeep P N
      wrote on last edited by Pradeep P N
      #2

      Hi @DropNod

      Yes it is possible, few instructions for your APP development.

      • Avoid hardcoded size or values for the Windows, Components, Layouts etc...

      • Please use the Screen Pixel Density to calculate size for proper rendering of the APP in different Resolution Devices.

      • Refer https://www.mydevice.io/#tab1 for the Resolution details.

      • Always consider Physical width, height & ppi for the calculation.

      • width = Physical Width / Physical PPI & height = Physical Height / Physical PPI

      • Code reference : Qt World Summit 2018 Conference App.

      All the best.

      Pradeep Nimbalkar.
      Upvote the answer(s) that helped you to solve the issue...
      Keep code clean.

      1 Reply Last reply
      2

      • Login

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