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. qml android resolution issue
Qt 6.11 is out! See what's new in the release blog

qml android resolution issue

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
4 Posts 2 Posters 844 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.
  • P Offline
    P Offline
    Pradeep Reddy
    wrote on last edited by
    #1

    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

    raven-worxR 1 Reply Last reply
    0
    • P Pradeep Reddy

      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

      raven-worxR Offline
      raven-worxR Offline
      raven-worx
      Moderators
      wrote on last edited by
      #2

      @Pradeep-Reddy
      how are you requesting the QScreen exactly?

      --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
      If you have a question please use the forum so others can benefit from the solution in the future

      1 Reply Last reply
      0
      • P Offline
        P Offline
        Pradeep Reddy
        wrote on last edited by
        #3

        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);

        raven-worxR 1 Reply Last reply
        0
        • P Pradeep Reddy

          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);

          raven-worxR Offline
          raven-worxR Offline
          raven-worx
          Moderators
          wrote on last edited by
          #4

          @Pradeep-Reddy
          what does Windows.width / Window.height return?

          --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
          If you have a question please use the forum so others can benefit from the solution in the future

          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