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. QtDesigner: Trick for drop a widget in a zero sized layout ?

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

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 552 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.
  • Andy314A Offline
    Andy314A Offline
    Andy314
    wrote on last edited by Andy314
    #1

    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
    0
    • Chris KawaC Offline
      Chris KawaC Offline
      Chris Kawa
      Lifetime Qt Champion
      wrote on last edited by Chris Kawa
      #2

      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
      2

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved