Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Xml file to qml dynamic list

Xml file to qml dynamic list

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 3.0k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    goli
    wrote on last edited by
    #1

    i have a xml file with a lot of child nodes. and i want to parse it to qml list. But i don't want that all the data will be shown.
    i want it to be open when the user press on it.
    does anyone know how to do this, using qt/qml?

    1 Reply Last reply
    0
    • T Offline
      T Offline
      thisisbhaskar
      wrote on last edited by
      #2

      "XmlListModel":http://doc.qt.nokia.com/4.7-snapshot/qml-xmllistmodel.html should help you.

      [quote author="goli" date="1310639989"]
      i wan't it to be open when the user press on it.
      [/quote]

      What do you mean when you said you don't want it to be open when the user press on it???

      1 Reply Last reply
      0
      • G Offline
        G Offline
        goli
        wrote on last edited by
        #3

        sorry. i need it to be open when the user click on the element to show the children nodes

        it need to be shown as a tree model(but to load the data from the XML file only when the user ask for it)

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved