11-30-2012 10:15 AM
I have a tabbed pane, with a tab for each part of my app.
I'm getting confused with peek.
1. Is there a way, for when a user clicks from Tab A to Tab B, they can peek back to Tab A?
2. Also I was wondering, in Tab A I have a page with graphics on then I want to add in a list view when a user clicks a button. How should I display this list view? Should everything in Tab A be on a navigation pane and iI pop things in and out? Or should I use a sheet?
3. Also with a tabbed pane, when the user is not viewing Tab B, should I delete Page B that sits inside Tab B and reinitiate it later? Or should I just intiate all of each Tabs pages at the start of the app?
11-30-2012 10:25 AM
you cannot peek from TAB B to TAB A - think of them sitting side-by-side at the same level
to have NavigationPane on each Tab is OK - I'm doing the same.
using a NavigationPane and Pages on top you can peek back
you should not initialize all of your QML stuff at start up of your app.
only what's visible at first
then its up to you if you always create /destroy the content of a TAB. I have 2 Tabs where I know that the user will most time switch between them, so they're always loaded. Another TAB only seldom used I create / destroy dynamically
so there's not THE one and only answer HowTo do this kind of stuff. it depends from your app and usecases.
you can also implement a learning system and monitor how often Tabs are clicked and decide ...
11-30-2012 10:46 AM
Thanks for teh detailed reply.
Just one question about NavigationPane.
How do you implement this as well as having tabs?
I set my tabs by using:
But to set a navigationpane, the docs say:
Surely this will overide my tabs, how do I have bot at one - a navigation pane inside a page that is dispalyed from a tab?
11-30-2012 11:24 AM
you have to start with a TabbedPane
then the content of a Tab will be a NavigationPane. To make it easy you should use an extra QML file for this
11-30-2012 11:31 AM