12-30-2012 04:11 PM
My app has a 'bottom' page that has a menu page pushed on top.
m_menuPage = new Page(); ActionItem* backAction = ActionItem::create(); connect(backAction, SIGNAL(triggered()), m_navPane, SLOT(pop())); m_menuPage->setPaneProperties(NavigationPaneProper
ties::create().backButton(backAction)); m_menuPage->setContent(m_menuView) // a custom control
I then push the start page:
Later I push the menu page:
Then I want to swap the start page:
m_navPane->insert(-1, m_nextPage); m_navPane->remove(m_startPage);
Then the back button & nav bar disappear from the bottom. What's up? I thought the back button was associated with the menu page?
Solved! Go to Solution.
12-30-2012 04:24 PM
Might be a bug. Try inserting the new page at index 1 then deleting the page at index 0.
If it still disappears, try commenting out "remove" - will it return to newly inserted page properly?
12-30-2012 04:44 PM
Inserting at index 1 works. According to the docs here:
Setting to -1 should work.
12-30-2012 04:49 PM
I'll just notice that there is no need to provide your own action item for the "Back" button unless you want to customize back button title. Default back button works well for me.