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. Vertical size policy to frame
Forum Updated to NodeBB v4.3 + New Features

Vertical size policy to frame

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 3 Posters 600 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.
  • mit_cruzeM Offline
    mit_cruzeM Offline
    mit_cruze
    wrote on last edited by
    #1

    Suppose I am creating an application which contains frame. I am giving vertical size policy to fixed.
    Now If I run my application on Large screen does the size of frame grows according to my screen aspect ratio?
    Will vertical size will be same( as for example vertical height of frame in small screen is 5cm) in Large screen?

    jsulmJ 1 Reply Last reply
    0
    • mit_cruzeM mit_cruze

      Suppose I am creating an application which contains frame. I am giving vertical size policy to fixed.
      Now If I run my application on Large screen does the size of frame grows according to my screen aspect ratio?
      Will vertical size will be same( as for example vertical height of frame in small screen is 5cm) in Large screen?

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

      @mit_cruze I would say it will keep its size since it is set to fixed. So, if you set the size to 100 it will be 100.
      But why not just test?

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

      1 Reply Last reply
      0
      • m.sueM Offline
        m.sueM Offline
        m.sue
        wrote on last edited by
        #3

        Hi,
        I would think it depends on the type of dpi-awareness of the program. When you set it to 100, its 100 pixels. And 100 pixels are not 5 cm on every screen nor on each OS while keeping the screen.

        I think: The only thing garantueed is that if you set the layout (or size policy) to fixed the user cannot resize the widgets.
        -Michael.

        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