Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Call for Presentations - Qt World Summit

    Adjust verticalLayout to centralWidget size ?

    General and Desktop
    2
    3
    3412
    Loading More Posts
    • 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
      antismap last edited by

      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 Reply Quote 0
      • V
        vinb last edited by

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

        1 Reply Last reply Reply Quote 0
        • A
          antismap last edited by

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

          1 Reply Last reply Reply Quote 0
          • First post
            Last post