Multi Device Support

    • 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

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.