Hide TabItem temporarily?

AshMcConnell

04-10-2010 16:13:18

Hi Folks,

Is it possible to do this?

I tried TabItem::setVisible(false), but it didn't work.

Is there another way of doing it?

Thanks for your help
All the best,
Ash

my.name

05-10-2010 11:35:15

To remove and then to create

AshMcConnell

05-10-2010 11:58:02

To remove and then to create

Is there no way to keep a pointer to the TabItem, then add it again to the Tab?

Creating the TabItem again is difficult as it's quite complex.

Altren

05-10-2010 14:25:26

No, there's no way to hide TabItem, but you can do next thing: attach all child widgets to some temporary hidden widget, delete TabItem, and that reattach them back after creating TabItem. See Widget::detachFromWidget and Widget::attachToWidget.

AshMcConnell

05-10-2010 14:48:16

No, there's no way to hide TabItem, but you can do next thing: attach all child widgets to some temporary hidden widget, delete TabItem, and that reattach them back after creating TabItem. See Widget::detachFromWidget and Widget::attachToWidget.

Ah ok, thanks - i'll give that a go!

All the best,
Ash