Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Format independency 16:9 and 4:3
Forum Updated to NodeBB v4.3 + New Features

Format independency 16:9 and 4:3

Scheduled Pinned Locked Moved General and Desktop
4 Posts 3 Posters 1.1k 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.
  • J Offline
    J Offline
    jago
    wrote on last edited by
    #1

    Hi!
    I am developing a UI which will be used on various devices. The new ones have a 16:9 aspect ratio, the older ones - 4:3. Do I have to make two UI versions or is there a simpler way to achieve this independency?

    Best regards

    1 Reply Last reply
    0
    • A Offline
      A Offline
      Asperamanca
      wrote on last edited by
      #2

      It depends on what kind of UI you are developing. For dialog-like UI, a good layout should take care of different aspect ratios - but make sure you test your application for all targeted resolutions, anyway.

      1 Reply Last reply
      0
      • J Offline
        J Offline
        jago
        wrote on last edited by
        #3

        So it is not possible to achieve this through some code line, which recognizes what kind of device it is and adjusts the sizes of the elements accordingly to the format?

        1 Reply Last reply
        0
        • X Offline
          X Offline
          Xander84
          wrote on last edited by
          #4

          That heavily depends on your layout, like Asperamanca already said.
          Also what technology you are using, with QtQuick (QML) you can use layout anchors and that will essentially scale your layout to the window size if you want to, with a classic widget that is no so easily done I think.

          maybe a screenshot or idea of your app layout would be helpful here?

          Of course there is no magic way to just scale everything to all window/screen sizes.. :D

          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