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. Is it nessesary to use a layout manager?
Forum Updated to NodeBB v4.3 + New Features

Is it nessesary to use a layout manager?

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

    I whant to create this form:
    alt text

    For widget placement I use the setGeometry method:

    lablePortName->setGeometry(labelSize.width, labelSize.height, coord-X, coord-Y);
    

    Is it necessary to use a layout manager? I mean is the using of a layout manager can reduce number of code strings and/or time to develop such form without changing demands of this GUI?

    jsulmJ 1 Reply Last reply
    0
    • F flammmable

      I whant to create this form:
      alt text

      For widget placement I use the setGeometry method:

      lablePortName->setGeometry(labelSize.width, labelSize.height, coord-X, coord-Y);
      

      Is it necessary to use a layout manager? I mean is the using of a layout manager can reduce number of code strings and/or time to develop such form without changing demands of this GUI?

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

      @flammmable said in Is it nessesary to use a layout manager?:

      Is it necessary to use a layout manager?

      Well, it's not. But why bother with manual positioning/sizing of all your widgets? And as soon as your window is resizable it gets even more cumbersome to do it manually.

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

      1 Reply Last reply
      3
      • nageshN Offline
        nageshN Offline
        nagesh
        wrote on last edited by
        #3

        @flammmable With the help of layout manager you can make resolution independent GUI applications.

        I mean is the using of a layout manager can reduce number of code strings and/or time to develop such form without changing demands of this GUI?
        

        yes.. by using layout manager manual code for positioning the widgets elements can be eliminated. code for resize of window to resize the elements also be eliminated.

        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