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. Qt Mobile App: Screen Size must be numerical?
Forum Updated to NodeBB v4.3 + New Features

Qt Mobile App: Screen Size must be numerical?

Scheduled Pinned Locked Moved Solved QML and Qt Quick
2 Posts 1 Posters 360 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.
  • D Offline
    D Offline
    DooziiInc
    wrote on last edited by
    #1

    Greetings all,
    Ive been evaluating using Qt for a new mobile app but have been a little perplexed at some of the design structures. I notice that page content can be aligned with regards to the parent, but there doesnt seem to be any way to have the page (the parent for the content) automatically adjust its size to the individual device (Android or iOS). Instead the QML file declares 640 x 480 as a default. When using Qt, do we have to compile a different value for each device we want to support? Is there no way to declare height and width as 100%?

    Thanks

    1 Reply Last reply
    0
    • D Offline
      D Offline
      DooziiInc
      wrote on last edited by
      #2

      I figured it out I think, by using Screen.width and Screen.height instead of a numerical value.

      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