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. Multi Device Support

Multi Device Support

Scheduled Pinned Locked Moved Mobile and Embedded
1 Posts 1 Posters 477 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
    Maxim DC
    wrote on last edited by Maxim DC
    #1
    • Scaling
      This code block will solve a lot of scaling problems:
    //dp(64) will result in 48px for ldpi, 64px for mdpi, 96px for hdpi etc... but will always be 1.0cm
    
    function dp(x) {
        //dp = density independent pixels 
        //160dp=inch   inch=25.4mm
        return Math.round(x *(Screen.pixelDensity /160 *25.4))
    } 
    
    • Performance
      Can someone help me to implement something that checks if its a high end or low end device, that will solve a lot speed problems on low end devices and improve quality on high end devices
    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