×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    Jan 2009
    Location
    Melbourne, Australia
    Posts
    2,571

    Dynamic toolbar layouts using PageStackWindow on Symbian

    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
    Super Contributor
    Join Date
    Jun 2006
    Location
    India
    Posts
    3,037

    Re: Dynamic toolbar layouts using PageStackWindow on Symbian

    on page you define something like tools: pagelayout to display the tools bar, so you can define any layout w.r.t. that page.
    Use [URL="http://qt.nokia.com/products/qt-quick/"]Qt-Quick[/URL] to make your application UI more attractive.

    [URL="http://store.ovi.com/content/271896"]http://store.ovi.com/content/271896[/URL] | [URL="http://store.ovi.com/content/276199"]http://store.ovi.com/content/276199[/URL] |[URL="http://store.ovi.com/content/276202"] http://store.ovi.com/content/276202[/URL] | [URL="http://store.ovi.com/content/280827"]http://store.ovi.com/content/280827[/URL]

  3. #3
    Registered User
    Join Date
    Jan 2009
    Location
    Melbourne, Australia
    Posts
    2,571

    Re: Dynamic toolbar layouts using PageStackWindow on Symbian

    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
    Registered User
    Join Date
    Jan 2009
    Location
    Melbourne, Australia
    Posts
    2,571

    Re: Dynamic toolbar layouts using PageStackWindow on Symbian

    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
    Join Date
    Dec 2011
    Posts
    13

    Re: Dynamic toolbar layouts using PageStackWindow on Symbian

    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
    Join Date
    Jun 2008
    Location
    Noida,India
    Posts
    4,043

    Re: Dynamic toolbar layouts using PageStackWindow on Symbian

    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
    Replies: 7
    Last Post: 2009-07-04, 02:53
  3. How use ARM dynamic thunk ON SYMBIAN
    By KevinHua in forum Symbian
    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
  •  
×