×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Regular Contributor
    Join Date
    Aug 2004
    Posts
    64

    Question how to get listview data from another qml page

    Hi,

    After sellecting an item from listview, I will push another qml page. But I need to know which item sellected on the new qml page. I search and could not find any working code.

    Any idea.

    Best Regards

  2. #2
    Nokia Developer Champion
    Join Date
    Feb 2008
    Location
    Ahmedabad, Gujarat, India
    Posts
    3,852

    Re: how to get listview data from another qml page

    if you are using a list model, then simply there is function get(index).

    You pass the index property there and you will get the data object as reply.

  3. #3
    Regular Contributor
    Join Date
    Aug 2004
    Posts
    64

    Re: how to get listview data from another qml page

    Hi,

    I am using listmodel and can not pass this id to new qml page. Any example? Also I need to retrieve title from model in the new qml page as well.

    BR

  4. #4
    Nokia Developer Champion
    Join Date
    Feb 2008
    Location
    Ahmedabad, Gujarat, India
    Posts
    3,852

    Re: how to get listview data from another qml page

    why you need to pass the id just assign the model index or the value itself to that views or qml files property prior to pushing that ??

  5. #5
    Regular Contributor
    Join Date
    Aug 2004
    Posts
    64

    Re: how to get listview data from another qml page

    Hi,

    I am quite new for qml. Where can I find some infos and examples about your mentioned idea?

    BR

  6. #6
    Registered User
    Join Date
    Sep 2011
    Posts
    1

    Re: how to get listview data from another qml page

    Hi,

    I'm a new QML developer too, but I think you can use the "properties" parameter of the push method.

    Create a property that will hold the selected item index in the page that will be pushed and specify this property value when you push.

    Just take a look in the doc: http://doc.qt.nokia.com/qt-component...ml#push-method

    Best Regards,

    Rodrigo Borges

Similar Threads

  1. Harmattan Page cannot Contain XmlListModel and ListView
    By vaselli.vittorio in forum Nokia N9
    Replies: 7
    Last Post: 2011-08-14, 13:03
  2. Replies: 3
    Last Post: 2011-05-13, 11:49
  3. sending encrypted data to a php page
    By bilgic in forum Mobile Java General
    Replies: 8
    Last Post: 2011-04-05, 07:35
  4. How to save the data when the setting page close?
    By zhou533 in forum Symbian User Interface
    Replies: 1
    Last Post: 2008-04-07, 06:08
  5. accessing specific data(information page -Engineering Option Data-)
    By mahd_98 in forum Mobile Java Tools & SDKs
    Replies: 1
    Last Post: 1970-01-01, 02:00

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×