Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Developer
Developer
Posts: 132
Registered: ‎08-24-2011
My Device: Z10 LE + Playbook
My Carrier: MTS Ukraine

Hide tabbar

Hello there,

 

could you tell me if there is a way to hide tabbar? I would like to show it when users taps on the screen for 5 sec (for example) and then hide it.

 

Thanks! 

Thank you!
----------------------------
My Apps: Alchemy Game | Image Resizer | Jam! | Traffic Signs: USA | Radio Record
My Blog: http://bb10pro.com
Highlighted
Developer
Posts: 1,524
Registered: ‎12-18-2012
My Device: Z30, Z10 LE, DevAlpha C, PlayBook

Re: Hide tabbar

[ Edited ]

I don't see any methods to directly hide it, but quoting the docs:

If the TabbedPane has only one Tab and the content of that Tab has no actions, the Action bar is not displayed since there aren't any additional tabs or actions to be displayed.

Try temporarily removing all tabs except one and it should hide (store them in member variables or properties to add them back later).

 

As for the touch, subscribe to touch signal of container. On touchDown schedule the timer to fire in 5 seconds.

When the timer fires update the TabbedPane. On touchUp reset the timer. Probably this is easier to do in C++.

 

Upd:

 

In constructor:

 

mTimer = new QTimer(this);
mTimer->setInterval(5000);
mTimer->setSingleShot(true);
QObject::connect(mTimer, SIGNAL(timeout()), SLOT(myslot()));

 

To start:

mTimer->start();

 To stop:

mTimer->stop();

Andrey Fidrya, @zmeyc on twitter