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. Fill parent in Qt Creator 2.2.0
QtWS25 Last Chance

Fill parent in Qt Creator 2.2.0

Scheduled Pinned Locked Moved General and Desktop
5 Posts 4 Posters 5.1k 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.
  • S Offline
    S Offline
    saidiahd
    wrote on last edited by
    #1

    When I add a layout element to the centralwidget, that element stays in the middle of the window and does not move when the window is resized. How can I make it "fill" the whole area (and resize its children properly)? All children widgets of my layout are expanding properly.

    "Learn from yesterday, live for today, hope for tomorrow." - Albert Einstein -

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

      If you mean adding a layout via the designer, you have to first put the child widgets (at least one) on the centralwidget and then right-click, and choose a layout in the "Lay out" menu that pops up.

      1 Reply Last reply
      0
      • D Offline
        D Offline
        DougRoyer
        wrote on last edited by
        #3

        Ok - so which one is FILL parent?

        --
        Doug Royer
        http://DougRoyer.us

        1 Reply Last reply
        0
        • M Offline
          M Offline
          mlong
          wrote on last edited by
          #4

          If you just have one item, the grid layout should work for you.

          You can edit the properties to adjust border margins, etc.

          Software Engineer
          My views and opinions do not necessarily reflect those of anyone -- living or dead, real or fictional -- in this universe or any other similar multiverse node. Void where prohibited. Your mileage may vary. Caveat emptor.

          1 Reply Last reply
          0
          • D Offline
            D Offline
            DougRoyer
            wrote on last edited by
            #5

            One of 'them' ?
            One Layout? One Widget? One what?

            --
            Doug Royer
            http://DougRoyer.us

            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