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. Sorting items in ListView by date property
Forum Updated to NodeBB v4.3 + New Features

Sorting items in ListView by date property

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
2 Posts 2 Posters 1.3k 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.
  • M Offline
    M Offline
    MartinD
    wrote on 22 Jun 2016, 12:10 last edited by
    #1

    Hi,
    my model passed to ListView consists of items which has date property (QDateTime type). How to sort items in ListView by date property (descending)?

    1 Reply Last reply
    0
    • ? Offline
      ? Offline
      A Former User
      wrote on 22 Jun 2016, 12:28 last edited by
      #2

      Hi! See QML Dynamic View Ordering Tutorial, especially part 4.

      1 Reply Last reply
      0

      1/2

      22 Jun 2016, 12:10

      • Login

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