01-22-2013 06:30 AM
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.
01-22-2013 06:36 AM - edited 01-22-2013 06:45 AM
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++.
mTimer = new QTimer(this); mTimer->setInterval(5000); mTimer->setSingleShot(true); QObject::connect(mTimer, SIGNAL(timeout()), SLOT(myslot()));