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

Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.

Posts: 412
Registered: ‎04-04-2012
My Device: BlackBerry Z30/Z10/Z10LE/Q10/PlayBook
Accepted Solution

Switching tabs in TabbedPane



  How does one switch to a specific Tab when you click on an ActionItem in another Tab?


Thanks in advance.

Posts: 329
Registered: ‎05-07-2012
My Device: BB Alpha
My Carrier: N/A

Re: Switching tabs in TabbedPane

Hi there,


In order to switch tabs, you need to use the 'activeTab' property.

1) Make sure your Tab object in QML contains an id:

 id: tabbedPane


2) Make sure your tabs contain ids as well:

id: actualTab2


3) in your current tab's ActionItem's onTriggered routine, call the following:

tabbedPane.activeTab = actualTab2;


Let me know if this works for you;




Posts: 181
Registered: ‎07-19-2012
My Device: Q5, Q10, Z10, Z30, PlayBook
My Carrier: Carrier

Re: Switching tabs in TabbedPane

Is there a way to add a transition. By default the new tab just switches in a blink, what if I want to slide to the new tab or something similar?

If you find my post helpful please "like" it and "accept as a solution"
Posts: 329
Registered: ‎05-07-2012
My Device: BB Alpha
My Carrier: N/A

Re: Switching tabs in TabbedPane



Unfortunately not at the moment - This feature or the ability to customize it may come in the future. It would be a great feature request, however:







New Contributor
Posts: 7
Registered: ‎09-25-2012
My Device: Playbook 2.1
My Carrier: Claro

Re: Switching tabs in TabbedPane

Just to add to the answer, you also can use the index of the tabs (considering you know the index) like:

tabMain.activeTab = tabMain.at(0);

where tabMain is your TabbedPane.