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. Manage size of UI elements for different platforms
Forum Updated to NodeBB v4.3 + New Features

Manage size of UI elements for different platforms

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 2 Posters 396 Views
  • 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.
  • saitejS Offline
    saitejS Offline
    saitej
    wrote on last edited by
    #1

    Hi

    I am developing a new application. From my previous learnings, I would like to have a proper way to control the sizes and layouts of UI elements in QML based on the Screen properties like pixel density, width, height and set it for the entire application. Can someone direct me to a good resource or brief me some ideas on how to go about it.

    Thanks

    jsulmJ 1 Reply Last reply
    0
    • saitejS saitej

      Hi

      I am developing a new application. From my previous learnings, I would like to have a proper way to control the sizes and layouts of UI elements in QML based on the Screen properties like pixel density, width, height and set it for the entire application. Can someone direct me to a good resource or brief me some ideas on how to go about it.

      Thanks

      jsulmJ Online
      jsulmJ Online
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @saitej https://doc.qt.io/qt-5/qscreen.html

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1
      • saitejS Offline
        saitejS Offline
        saitej
        wrote on last edited by
        #3

        @jsulm
        I have seen this. I wanted an example of how to handle UI element sizes like button dimensions, checkbox dimensions etc for different screen sizes & pixel densities

        jsulmJ 1 Reply Last reply
        0
        • saitejS saitej

          @jsulm
          I have seen this. I wanted an example of how to handle UI element sizes like button dimensions, checkbox dimensions etc for different screen sizes & pixel densities

          jsulmJ Online
          jsulmJ Online
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @saitej said in Manage size of UI elements for different platforms:

          I wanted an example of how to handle UI element sizes like button dimensions, checkbox dimensions etc

          Use layouts and check https://doc.qt.io/qt-5/highdpi.html

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          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