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. Filtering XmlListModel data

Filtering XmlListModel data

Scheduled Pinned Locked Moved QML and Qt Quick
1 Posts 1 Posters 1.4k Views
  • 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.
  • S Offline
    S Offline
    shakyanu
    wrote on last edited by
    #1

    Hi,
    I have a xml file.

    @
    <row>
    <field name="esname">Dancing ceremony</field>
    <field name="esbegin">2000-11-22</field>
    <field name="esend">2012-10-17</field>
    <field name="eventid">1829275</field>
    <field name="eventname">ASASASASASASAS</field>
    <field name="eventdate">2012-04-31</field>
    <field name="eventtime">19:00:00</field>
    </row>
    @
    The xml file contains number of rows that contain different events on different dates.

    Assume today is 2012-04-22. Then 2012-04-31(<field name="eventdate">2012-04-31</field>) is on next week. I want to filter the
    event name (<field name="esname">Dancing ceremony</field>) where date belongs to next week.

    Filter events where eventdate belong to current date/ current week

    When current date is 2012-04-31, I want to filter the events belongs

    is there a way to filter this XmlListModel in QML?

    It would be great help.
    Thank you

    [Edit: Added @ tags; mlong]

    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