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

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.



Thank you!
My Apps: Alchemy Game | Image Resizer | Jam! | Traffic Signs: USA | Radio Record
My Blog: http://bb10pro.com
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++.




In constructor:


mTimer = new QTimer(this);
QObject::connect(mTimer, SIGNAL(timeout()), SLOT(myslot()));


To start:


 To stop:


Andrey Fidrya, @zmeyc on twitter