TabbedPane NavigationPane and return

Hi all

I am currently working on an application that has a TabbedPane as root control, one of the tabs has a grid of buttons which, once clicked will be display a NavigationPanel which will allow the user to scroll through the different pages.

The problem I have is how to return to the TabbedPane, once I'm done with the NavigationPane. Is the closest I have set up an action close in the action menu that displays the last page, then tries to restore the tabs panel display using the "Application::instance()-> setScene (root);", unfortunately, this causes app to freeze.

Ideally, I would go back to the TabbedPane using the default back button on the first page, but it seems to be disabled, adding that a custom button also fails IE does not appear.

So I was wondering if I'm missing something, IE the TabbedPane need to recreate?

Thanks for any help, how to integrate the different controls seems a little light on documentation.

Thanks and greetings

James

You don't need to return the pane tabs - use the following structure:

TabbedPane {

  Tab {
    id: tab1
    title: "First Tab"    NavigationPane {
      id: nav1

      Page {        id: page1
        /* put your buttons here */
      }      onPopTransitionEnded: { page.destroy(); }
    }  }

  Tab {
    id: tab2
  }
}

The structure above would output a blank page in your first tab. There will be no back along the action bar button, and the action bar itself will be invisible unless you put some ActionItems in there. Put your buttons on this first page (put it in a separate QML file so that your main.qml is sharper).

When you press a button on your home page (page1), pushing an extra page for 'nav1' it will be pushed ontop of page1 - and you'll get a back button this time. You have no need to do something to get back to the basic page, except by pressing the back button. When the top of the page gets jumped, you will automatically return to the base of the base. Be sure to destroy the pages you create in the onPopTransitionEnded handler.

Tags: BlackBerry Developers

Similar Questions

  • In the root of TabbedPane NavigationPane

    Hi all

    I have a TabbedPane and then a menu with a SettingsActionItem. When this settings button fires I want to push a page that contains the parameters to this subject, and then I can click back to return to tabs.

    import bb.cascades 1.0
    
    TabbedPane {
        Menu.definition: MenuDefinition {
            settingsAction: SettingsActionItem {
                onTriggered: {
                    var page = setingsView.createObject();
                    navigationPane.push(page);
                }
                attachedObjects: ComponentDefinition {
                    id: settingsView
                    source: "SettingsView.qml"
                }
            }
        }
        Tab {
            tite: "Tab1"
            NavigationPane {
                id: navigationPane
                Page {
                     //etc.....
                }
            }    }}
    

    However, the problem is that there is no navigation pane to push the new page. We cannot put a NavigationPane under the TabbedPane, but we can put it in a tab of a TabbedPane.

    So, how can I go all by pushing a new page?

    Thank you!

    [UPDATED ABOVE CODE]

    I got it work using files separated such as:

    hand. QML

    TabbedPane {
        id: newsPane
    
     Tab{
         title: ""
            TabOne {
                }
    }
    Tab{
        title: ""
           TabTwo {
               }
        }
    Tab{
        title: ""
           TabThree {
               }
        }
    Tab{
        title: ""
           TabFour {
               }
        }        
    
    }
    

    Then, he...

    TabOne.qml, TabTwo.qml, TabThree.qml and TabFour.qml:

    NavigationPane {
        Page {
           ....
           }
       }
    

    And it has an a NavigationPane feel TabbedPane when I can push to a page within the NavigationPane and action bar has more tabs, rather it changes the back button.  Can be illustrated in this app: http://appworld.blackberry.com/webstore/content/20197455/?lang=en (I wrote the application for OnlineTobago)

    So as much as your page 'Settings', why not use a spreadsheet?  This is exactly what a spreadsheet is intended, something that breaks the normal flow of navigation.  And it can be accessed via the system menu of any tab, if defined in the main.qml and using the property alias you can control the id defined in TabOne.qml, TabTwo.qml, etc. I have a sample where I do it too: http://bbcascades.com/index.php/tutorial-list/50-persistence-of-cascades-memory

    I hope this helps.

  • My iPhone6 has convinced himself that he has a helmet connected - how can I convince otherwise and return to the normal setting?

    My iPhone6 has convinced himself that he has a helmet connected - how can I convince otherwise and return to the normal setting?  I tried turning it off and back on after awhile, but did not.

    Double check with a magnifying glass and a good lighting that nothing has been slain. Then, try insertion and withdrawal of your headphones a couple of times. If this does not work, it may be while the shooting went wrong. In this case, make an appointment at the Genius Bar at your local Apple store for the assessment.

  • My iphone will not suddenly be updated to icloud photos?  It has been working well recently and I tried restore, reboot, turn iclould off photos and return, etc...  can anyone help?  well worked yesterday and now not...

    My iphone will not suddenly be updated to icloud photos?  It has been working well recently and I tried restore, reboot, turn iclould off photos and return, etc...  can anyone help?  well worked yesterday and now not... most of the time the number of photos don't match same new how I am download to icloud...

    Have you tried the signature to iCloud and then reconnect?

    Try a reset.

    Reset device

  • V19 of FireFox, I get seeds of text as if clear-type seeds off then comes back if I tab out and returned... Drives me CRAZY how to fix this?

    I'm running FireFox v19.0.2 and I continue to have the text on the pages raise you a messed up as if clear-type was suddenly turned OFF... tab and return in and its fixed... but he comes back and often. This only happens in FireFox. I'm running Win7 64 bit and it's a new show. How should I do? Its driving me crazy...

    I will try that thank you. I'll post an update later if does not work or

  • cannot stop at several new tabs to open boxes at least three every time I have leave and return to the home page or restart Firefox

    cannot stop at several new tabs to open boxes at least three every time I have leave and return to the home page or restart Firefox

    Hi TGreybeard,

    Have you looked at the Knowledge Base article Firefox opens several times empty tabs or windows after clicking on a link ? There is some good information in there that should help you to solve the problem.

    Hope this helps!

  • I would like to remove this program and return to the home page of yahoo.

    I want to just remove firefox and return to my yahoo homepage. I do not understand this program and I can not get my favorites back with all the information of my Bill.

    In order to set up your page Yahoo as your Home Page, see this help article on 'How to set a Home Page'.

    Don't know how you lost your bookmarks, but this help article about 'Favorites lost' can help.

  • How can I unintstall Firefox 7 and return to 6?

    I downloaded Firefox 7 because it says to upgrade. Well and good, but now my Norton Security Safe (Norton Toolbar) that has all of my passwords is more work. How can I get that back? It is not at all and I have to manually check to all the Favorites. Pure pain. If there is no solution how to uninstall 7 and return to 6? I'm not a geek so please just do it.

    You must have Firefox 7.0 before making the Norton Live Update or you will not get the necessary updates for Firefox 7.0. I'm not sure what Norton recommends now, but when Firefox 5.0 and 6.0 have been released and users of Norton to update Norton before they installed the updated version Norton IIRC said to reinstall all of the Norton Security program after the new update of Firefox has been installed to solve problems related to their application.

    If you are serious about getting rid of Norton, take a look at Avira Personal free - there is no need to install any type of Firefox Add-on which IMO is what causes all these problems during updates of Firefox.

    Avira Personal free - http://www.free-av.com/

  • How can I get rid of the ugly "Japanese tatoo" and return to regular appearanace?

    How can I get rid of the horrible "Japanese tatoo and return to the seemingly ordinary?

    This has happened

    Each time Firefox opened

    == I opened an optional aspect of Firefox promo

    I guess that this tattoo is a character. Just follow these instructions: http://support.mozilla.com/en-US/kb/Using+themes+with+Firefox?s=Themes & as = s #How_to_switch_themes and when you select a theme the default theme or theme selection no matter what you installed that you want to see t.

  • Satellite C660-1LD: how to recover and return to the factory settings

    Hi guys,.

    I suffer with any problem on any website a few linked words and when I click on it, an ad. opening of site Web which is a little virus I think and the laptop runs very slowly

    I decided to restart the laptop of the t and return to the factory settings.

    Could you please help me how to restart I'm not really good with computers so if you explain step by step it would be fantastic.

    Thank you

    Hello

    Read the discussions here in the forum of Toshiba product recovery.
    In addition, check this documentation how to use HARD drive recovery:

    + How to recover a Toshiba notebook with the HDD recovery procedure.
    http://APS2.toshiba-tro.de/KB0/HTD1303440001R02.htm

  • How can I get rid of video messages and return to video calls on an iPAD?

    Somehow, I managed to transform video calling to video messages, I have everything together to get rid of the messages and return calls. How do I do that?

    The video call option also lacks for contacts who are online? Video messaging option normally appears to contacts who are offline, you can also send video messages, while the contact is offline.

  • Compare multiple columns and return a different value

    I have more access to excel and I'm running my previous workflow in numbers of duplication of issues.

    I have a worksheet when a sheet with all my power tools.  On the "Power Tools" sheet I have columns for the brand, Type, model, purchase date, etc...  An example of this would be: pass a "DEWALT", "Jackhammer" Col B, Col C "DCD995M2" and so on.

    I have a second sheet in the same document which is my front end if you want.  I wanted to have selections for this dynamic drop-down list but it seems it is not possible without scripts, but is not the immediate question yet I'm the mention the case where someone knows a good fix.  The second sheet "Sorting Test", I created manually drop-down boxes, one in column A of the brand and the other in column B for Type.  I'll choose the brand and type and I want numbers autofill the rest of this line based on these two selections.

    Example:

    In the 'Sort Test' sheet I select DEWALT in column A and I select the drill in column B and I want DCD995M2 is displayed in column C and the purchase date in column D and so on.

    Excel in it would be a game table or something similar.  So far every site and search google only gave a lot of people who try to do VLOOKUP or correspond to errors, but I've really met anyone corresponding to two distinct cells from two separate columns and return data from this same line a match was found on.

    I must also mention I'm really trying to avoid adding a hidden line that combines some of these but I know it's the most noticeable work around.

    Basically, I want to match two selections separated against two separate columns, and when it finds the match, I want it returns a different value of this corresponding line how I got everything just copy this formula on adjacent cells and simply adjust to the column in the same row matched.

    I know that I shouldn't do this on separate sheets, but it's just a choice that I made a point of design.

    Any help would be appreciated, because I'm trying to really get the most out of the numbers, especially with how it syncs between desktop and mobile and I have more access to Excel.

    You can it as what you do and why?  This will help us understand what drives the design.  Leave out how to solve the problem,

    also post screenshots can be very useful

  • I have a problem while adding my gmail account, the steps I took 1) mails, contacts) 2 Add County 3) Google icon the problem here is when I type icon Google I don't get fed details with screen and return to the screen of icons Google only. Please guide

    HI the phi I problem just add my iPad from gmail account. The steps that I follow as

    (1) mails, contacts

    (2) add an account.

    (3) Google icon

    the. Problem is when I type icon Google is s arching i. Google Gmail accounts and return on Google only icon. I get no opportunity to be fed my email and password details.

    PL help and guide in this regard

    Helle k

    suryakonanki wrote:

    HI the phi I problem just add my iPad from gmail account. The steps that I follow as

    (1) mails, contacts

    (2) add an account.

    (3) Google icon

    the. Problem is when I type icon Google is s arching i. Google Gmail accounts and return on Google only icon. I do not get option be fed my email and password details.

    PL help and guide in this regard

    Helle k

    you will not be 'fed' coordinated - you must ENTER.

    do you get the 'FORM' referred to in step 4? > http://www.dummies.com/how-to/content/how-to-add-your-email-account-to-your-ipad .html

  • ProBook 455 L3P93ES G2 #ABZ: installation without end and return the video driver AMD R6 and R7 M260DX and stop on a black screen system

    Hello, I'm in trouble with this problem. If anyone can help me, I appreciate a lot. Thank you in advance.

    Laptop: HP ProBook 455 G2 L3P93ES #ABZ

    Problem: windows back AMD R6 and R7 video driver to the old version of windows update install. Return process the screen come black and stop here.

    Procedure, I followed:

    1. updating the bios with the latest version (M75_0141.bin)
    2. new facility created by HP Cloud recovery customer USB boot disk
    3. Install the drivers and programs of the HPSoftwareSetup.exe util
    4. Connect the network cable and upgrade the drivers and the HP Support tool programs assistant
    5. Install the software
    6. Join the Organization's domain
    7. Force Windows Update to version 1607 by the upgrade of Windows tool
    8. Windows Update

    Item 4, at random, windows update 10 and return the driver from these versions:

    • 15.201.1301.0
    • 15.201.2301.0
    • 15.300.1025.1001

    I don't have install the AMD specific video driver (Radeon Crimson Edition 16.7.3 software) or drivers from the Chipset AMD (Crimson edition 16.7.3) because when I try in a previous installation of test I had the same problems

    To restore the display I have to start windows in safe mode and disable the two R6 and R7 display cards, and then restart. After that I can reactivate the cards one time.

    This device first question first time I install Windows 10 the year in August (Yes, after a few days Windows 10 out)

    Any help that will be much appreciate because I have to reinstall on 20 laptops for the school to start the day.

    Thank you

    ScuolaCarovana

    Hello;

    Let me welcome you on the HP forums!

    From your description, it seems that, after you have installed the correct video driver for your ProBook (15.201.1301) AMD, Windows Update is then by installing a different driver on top of that, right version?

    If this is the case, you must follow these instructions to STOP Windows update update drivers: how stop Windows 10 to update automatically the device drivers - windows Windows 10-10

    Once you do this, you should not see updates to the pilot after that.

    Good luck

  • my computer is connected to a new projector with a DVI and HDMI cable, and return the currency I installed correctly but I don't get a picture on the projector

    I connected my computer to a new projector with a DVI and HDMI cable, and return the currency I installed correctly but I don't get a picture of the projector, need HELP.

    Hi Bill,

    Thanks for asking this question to Microsoft Community.

    I will definitely help you to set up the projector, but before starting, I would ask you some troubleshooting questions.

    What version of the Windows operating system is installed on the computer? Do you get any error messages? Have you done a recent software or changes to the material on the computer?

    Here is a link that provides information on connecting to a projector. Go through it and check if it helps.

    Hope this information is useful and provide us with more information for further assistance. We will be happy to help you.

Maybe you are looking for