Qt World Summit: Submit your Presentation

How to hide a layout with all its children?

  • It would be convenient to hide / show groups of widgets via their layout, but I don't see any way to. I just want to hide the whole layout from screen with little to no additional coding (I suppose I could iterate over all widgets in a layout and call setvisible(false), but that's not neat). Is it possible?

  • Lifetime Qt Champion


    AFAIK, not from a layout, however you can have "container widgets" where you set these various layouts and hide them.

    Hope it helps

Log in to reply