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. Adjust verticalLayout to centralWidget size ?

Adjust verticalLayout to centralWidget size ?

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 3.6k 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.
  • A Offline
    A Offline
    antismap
    wrote on last edited by
    #1

    Hello, I'm a begginer with Qt and since a few hours i'm stuck : How do i ajust the size of a vertical layout (or whatever else) into the centralwidget size ? I would like to be set to the current window size (the Mainwindow and centralWidget size)
    I'm using the designer. The objects are like this :

    @
    MainWindow
    centralWidget
    verticalLayout
    @

    I've been searching various forums and doc but I can't find the answer,
    Thanks in advance !

    [EDIT: @-tags for formatting, Volker]

    1 Reply Last reply
    0
    • V Offline
      V Offline
      vinb
      wrote on last edited by
      #2

      You have to layout not only the widgets on the mainwindow, but also the mainwindow itself

      1 Reply Last reply
      0
      • A Offline
        A Offline
        antismap
        wrote on last edited by
        #3

        Oh my god, I've read your sentence, i clicked two times and you saved me ! Many thanks :)

        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