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. Windows dimension
Forum Updated to NodeBB v4.3 + New Features

Windows dimension

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 190 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.
  • S Offline
    S Offline
    Stefanoxjx
    wrote on last edited by
    #1

    Hi, I know that this is a stupid question, but I would hear an opinion from some experts.
    I wrote a little program in my Desktop PC with display 23" and resolution 1920x1080.
    The program have fixed size windows and in my monitor are perfect.
    I ran the program in a Microsoft Surface with display 12" and resolution 1920x1080 and the windows are really small and the content is partially hidden.
    To draw them, I used layouts.
    Now, I'm a bit confused on which one it is the correct way to create graphics interfaces properly and have portability in various display configuration.
    Are there guidelines for this?
    Do you have links to documentation about this?
    Thanks for help.

    1 Reply Last reply
    0
    • artwawA Offline
      artwawA Offline
      artwaw
      wrote on last edited by
      #2

      Hi,
      for starters, obviously, HD resolution on 23" screen will have larger pixels than on 12". On top of that there is scaling present in Windows, which allows one to scale the content - so you get bigger size of text, icons, etc. I'd suggest to start reading here: https://doc.qt.io/qt-5/highdpi.html

      In short, having fixed size anything in the UI, when one doesn't know both the target resolution (width, height, dpi) nor the scaling is not best practice. Having locked proportions of the UI elements, so they scale properly - that's something else.

      For more information please re-read.

      Kind Regards,
      Artur

      1 Reply Last reply
      1

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved