Discussion Board

Results 1 to 6 of 6
  1. #1
    Nokia Developer Administrator hamishwillee's Avatar
    Join Date
    Jan 2009
    Location
    Melbourne, Australia
    Posts
    1,789
    I'm using a QML PageStackWindow and I want to have a default toolbar for the app and a toolbar for (some) pages.

    On harmattan, in each page I can define the toolbarlayout to be used by setting it to the "tools" property. This then overrides the default. However it appears that on Symbian I can't - I'm restricted to one toolbarlayout for the whole application when using PageStackWindow. Is that correct?
    When I tried this it seemed to be. If not, is there any example that demonstrates this use case?

    I can of course roll out my own app structure using Window and PageStack to "do this right", but it seems like I shouldn't have to.

  2. #2
    Nokia Developer Champion kkrish's Avatar
    Join Date
    Jun 2006
    Location
    India
    Posts
    3,029
    on page you define something like tools: pagelayout to display the tools bar, so you can define any layout w.r.t. that page.

  3. #3
    Nokia Developer Administrator hamishwillee's Avatar
    Join Date
    Jan 2009
    Location
    Melbourne, Australia
    Posts
    1,789
    As per my first message I tried that and it did not work with a PageStackWindow. Have you an example which demonstrates this?

  4. #4
    Nokia Developer Administrator hamishwillee's Avatar
    Join Date
    Jan 2009
    Location
    Melbourne, Australia
    Posts
    1,789
    Just so you know, the problem was me being thick, and passing in an id on creation of the toolbar - overriding whatever the page itself had.

  5. #5
    Registered User pavneetarora's Avatar
    Join Date
    Dec 2011
    Posts
    13
    Would you be able to post a code sample of this? I am faced with exactly the same situation.

    Thanks.

  6. #6
    Nokia Developer Champion vineet.jain's Avatar
    Join Date
    Jun 2008
    Location
    Noida,India
    Posts
    3,840
    Just a guess as what thread starter had tried:

    Code:
     ToolBarLayout {
            id: Layout1
    .
    .
    .
    }
    
    
     ToolBarLayout {
            id: Layout2
    .
    .
    .
    }
    // these tool bar layouts can be defined in main.qml(for e.g)
    
    Page
    {
      id : view1
      tools:Layout1  // different toolbar layout for different view
    ...
    ...
    }
    
    Page
    {
      id : view2
      tools:Layout2 // different toolbar layout for different view
    ...
    ...
    }

Similar Threads

  1. Replies: 2
    Last Post: 2011-10-30, 05:34
  2. dynamic dataase in symbian?
    By gulabppatil in forum Symbian C++
    Replies: 7
    Last Post: 2009-07-04, 02:53
  3. How use ARM dynamic thunk ON SYMBIAN
    By KevinHua in forum Symbian C++
    Replies: 2
    Last Post: 2009-02-03, 04:01

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved