Showing / Hiding an entire layout


10-07-2013 18:16:18

Hi Folks,

I have a number of layouts representing a number of menu "pages". Is there a supported way to show and hide the entire layout? I had previously been hacking slightly by using the protected method _setInheritsVisible, but since I upgraded to 3.2 this no longer works. What is the usual way to do this? What am I missing?

Thanks for your help!
All the best,


10-07-2013 18:45:54

What was the point of using _setInheritsVisible? I guess widget->setVisible(false) is what you need. Simply hide root widget of your layout.


10-07-2013 19:19:13

Thanks Altren,

I think I had problems with showing and hiding individual widgets within the layout while showing / hiding the layout parent widget. It's been a few years since I looked at the code, I'm not sure what I was thinking :). I'll try passing in a parent and using that to show / hide each layout.

Thanks again,