Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. QML XmlListView connect 2 Xml files
Forum Updated to NodeBB v4.3 + New Features

QML XmlListView connect 2 Xml files

Scheduled Pinned Locked Moved QML and Qt Quick
1 Posts 1 Posters 822 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.
  • K Offline
    K Offline
    keba
    wrote on last edited by
    #1

    Hi,

    I need to connect 2 xml files to produce an XMLListView. The first xml file (users.xml) contains users and language codes (like eng for english) that they are learning. It looks like this:
    @
    <xml>
    <user language="eng">name1</user>
    <user language="fra">name2</user>
    </xml>@
    The second xml file (languages.xml) contains more data on those languages. It looks something like this:
    @<xml>
    <language code="eng">English</language>
    <language code="fra">French</language>
    </xml>@
    Now in my XmlListView, I would like to show information connecting both these 2 files. In the listview, it would show the user and the name of the language, not its code. But I have no idea how/whether this is possible in QML/Javascript. Can someone help me? Thanks in advance.

    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