07-21-2012 01:42 PM
I am trying to Push a TabbedPane from NavigationPane(main.qml).
var nextPage = nav.deprecatedPushQmlByString("tabbedPane.qml");
It's not working. I know either
1) I am doing something wrong
2) I do not understand what can and cannot be pushed from certain screens
Mainly working in qml.
I am able to push a "Page" into view from NavigationPane. This works no problem.
Solved! Go to Solution.
07-21-2012 02:19 PM
Do you get an error in the debug window? Have you tried testing nextPage for its value? 0 means failure for the method.
Maybe try doing the push in C++? That way I have been able to push a Tabbed Pane in a Navigation Pane (in the first beta, I haven't used the second yet).
07-22-2012 09:49 AM
I used TabbedPane under NavigationPane too in SDK beta 1. Now I just use action buttons to replace the tabbed pane. Below is the explanation from the beta 2 upgrading guide.
Adding a TabbedPane to NavigationPane is no longer allowed
The reason for this change is that a tabbed pane should never be added to child pages in yourNavigationPane. A tabbed navigation should be used only at the top level of your app.
If you must use both deeper navigation and tabbed navigation, you can use NavigationPane inside aTabbedPane.
07-22-2012 04:03 PM - edited 07-22-2012 04:07 PM
Putting tabbed pane in navigation pane is wrong.
Rather use sheets on each (sub)page of tabbed pane if you need 'flow' among 'pages'.