Unsolved qml android resolution issue
-
Hi All, I`m developing an application on android using qml, to set QtAdmob position at bottom of the screen for that using QScreen, for full hd display (1080x1920) Qscreen api is always returning QSize(424, 729). or any other alternative approach to set Admob at bottom of the screen.
Thanks -
@Pradeep-Reddy
how are you requesting the QScreen exactly? -
hi Thanks for reply .. plz check below my code.
var obj = mapFromGlobal(tabBar.x,tabBar.y);
var obj1 = mapToGlobal(0,0);
console.log("x:"+obj.x+" y:"+obj.y+" x1:"+obj1.x+" y1:"+obj1.y+" H:"+Screen.height+" W:"+Screen.width)
banner.x = obj1.x;
banner.y = obj1.y*2;
console.log("init>>>>>screen density logical: " + Screen.logicalPixelDensity + " pixel: " + Screen.pixelDensity); -
@Pradeep-Reddy
what does Windows.width / Window.height return?