Qt Forum

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

    Unsolved QtDesigner: Trick for drop a widget in a zero sized layout ?

    General and Desktop
    2
    2
    363
    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.
    • Andy314
      Andy314 last edited by Andy314

      Hello, I have always the following problem with the designer:

      I have a Dialog with a least on widget with a MinimumExpanding, that mean it take as much space as possible. Then I want an additional layout in the dialog. I drop a layout and it gets 0 height or width (depending on its parent layout).
      Therefore it is not possible to drop a new widget in it. Is there a trick to reach this ?

      Because of this problem I never use layouts directly, I take Frames, increment its minimum size temporary, drop in a widget, set its layout and reset its minimum size.

      1 Reply Last reply Reply Quote 0
      • Chris Kawa
        Chris Kawa Moderators last edited by Chris Kawa

        Yeah, it's kinda annoying. What I usually do is set one of the layout's margins, drop the widget and then reset the margin.
        I wouldn't use an extra widget just for that.

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